excel-online
Excel Online (Microsoft Graph)
Excel automation via Microsoft 365.
Environment
export MICROSOFT_ACCESS_TOKEN="xxxxxxxxxx"
List Workbooks in OneDrive
curl "https://graph.microsoft.com/v1.0/me/drive/root/search(q='.xlsx')" \
-H "Authorization: Bearer $MICROSOFT_ACCESS_TOKEN"
Get Worksheets
curl "https://graph.microsoft.com/v1.0/me/drive/items/{item-id}/workbook/worksheets" \
-H "Authorization: Bearer $MICROSOFT_ACCESS_TOKEN"
Read Range
curl "https://graph.microsoft.com/v1.0/me/drive/items/{item-id}/workbook/worksheets/{sheet-name}/range(address='A1:D10')" \
-H "Authorization: Bearer $MICROSOFT_ACCESS_TOKEN"
Write to Range
curl -X PATCH "https://graph.microsoft.com/v1.0/me/drive/items/{item-id}/workbook/worksheets/{sheet-name}/range(address='A1:B2')" \
-H "Authorization: Bearer $MICROSOFT_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"values": [["Name", "Value"], ["Test", 123]]}'
Add Worksheet
curl -X POST "https://graph.microsoft.com/v1.0/me/drive/items/{item-id}/workbook/worksheets" \
-H "Authorization: Bearer $MICROSOFT_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name": "NewSheet"}'
Create Table
curl -X POST "https://graph.microsoft.com/v1.0/me/drive/items/{item-id}/workbook/worksheets/{sheet-name}/tables/add" \
-H "Authorization: Bearer $MICROSOFT_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"address": "A1:C5", "hasHeaders": true}'
Run Formula
curl -X POST "https://graph.microsoft.com/v1.0/me/drive/items/{item-id}/workbook/functions/sum" \
-H "Authorization: Bearer $MICROSOFT_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"values": [[1, 2, 3, 4, 5]]}'
Links
More from thinkfleetai/thinkfleet-engine
kagi-search
Web search using Kagi Search API. Use when you need to search the web for current information, facts, or references. Requires KAGI_API_KEY in the environment.
22feishu-bridge
Connect a Feishu (Lark) bot to ThinkFleet via WebSocket long-connection. No public server, domain, or ngrok required. Use when setting up Feishu/Lark as a messaging channel, troubleshooting the Feishu bridge, or managing the bridge service (start/stop/logs). Covers bot creation on Feishu Open Platform, credential setup, bridge startup, macOS launchd auto-restart, and group chat behavior tuning.
13bambu-local
Control Bambu Lab 3D printers locally via MQTT (no cloud). Supports A1, A1 Mini, P1P, P1S, X1C.
10voice-transcribe
Transcribe audio files using OpenAI's gpt-4o-mini-transcribe model with vocabulary hints and text replacements. Requires uv (https://docs.astral.sh/uv/).
10video-subtitles
Generate SRT subtitles from video/audio with translation support. Transcribes Hebrew (ivrit.ai) and English (whisper), translates between languages, burns subtitles into video. Use for creating captions, transcripts, or hardcoded subtitles for WhatsApp/social media.
10pollinations
Pollinations.ai API for AI generation - text, images, videos, audio, and analysis. Use when user requests AI-powered generation (text completion, images, videos, audio, vision/analysis, transcription) or mentions Pollinations. Supports 25+ models (OpenAI, Claude, Gemini, Flux, Veo, etc.) with OpenAI-compatible chat endpoint and specialized generation endpoints.
6