upload_file
Upload local files, base64 bytes, or text content to SharePoint and OneDrive, using chunked upload sessions for large files and eTag-safe replacements.
Instructions
Upload a local file, base64 bytes, or text content. Files at least 4 MiB and conditional replacements use an upload session, which sends the file in chunks of about 3 MiB, one request each.
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": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | ||
| drive | No | ||
| item_id | No | ||
| if_match | No | eTag precondition for replacement via an upload session at any size | |
| file_name | No | ||
| parent_id | No | Folder item ID, or a path starting with / such as /Team Docs | |
| local_path | No | ||
| content_text | No | ||
| content_base64 | No | ||
| conflict_behavior | No |