download_file
Download files from OneDrive or SharePoint using file ID or path. Specify the site and output location as needed.
Instructions
Download a file from OneDrive or SharePoint
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_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | No | File item ID | |
| filePath | No | Alternative: file path (e.g., "/Documents/report.xlsx") | |
| siteId | No | SharePoint site ID (optional) | |
| site | No | Known SharePoint site alias or canonical URL | |
| siteUrl | No | Canonical SharePoint site URL (optional alternative to siteId) | |
| driveId | No | Drive ID for a specific document library (optional) | |
| outputPath | No | Local path to save the file (optional) |