download-drive-item
download-drive-itemRetrieve a SharePoint file's content by drive and item IDs. Office documents, PDFs, TXT, and CSV are converted to text; other binary files are returned as base64, with size limits applied.
Instructions
Download a file's content from SharePoint. DOCX/XLSX/PPTX/PDF/TXT/CSV are converted to text; other binaries come back as base64. Size-limited by MAX_DOWNLOAD_BYTES.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"driveId": "<driveId>",
"itemId": "<itemId>"
},
"name": "download-drive-item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | Yes | Value for itemId | |
| driveId | Yes | Value for driveId | |
| fileName | No | File name (helps pick the right text extractor) |