Download a OneDrive file
download_drive_fileDownload a OneDrive file's contents as text (up to 1 MB) for text, markdown, JSON, or CSV. Provide a path or item ID to retrieve the content.
Instructions
Download a OneDrive file's contents as text (capped at ~1 MB). Best for text/markdown/JSON/CSV; binary files come back as best-effort UTF-8, so prefer webUrl for those. Give path or item_id.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "download_drive_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | File path from the drive root, e.g. /Documents/notes.md. | |
| item_id | No | File item id (from list_drive_items). Alternative to path. |