Upload Local File to OneDrive
upload_file_from_pathUpload a local file from the server's filesystem to OneDrive; auto-creates folders and supports files up to 250 MB.
Instructions
Upload a local file to OneDrive by reading it from disk on the server. The file must exist on this machine's filesystem. If you generated the file in a cloud container (e.g., claude.ai), first use Desktop Commander's write_file to save it to the user's local filesystem, then call this tool with that local path. Supports files up to 250 MB (chunked session upload above 4 MB). Intermediate folders are auto-created.
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": {
"local_path": "<local_path>",
"path": "<path>"
},
"name": "upload_file_from_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Graph API destination path ending with :/content (e.g., /me/drive/root:/Documents/file.docx:/content) | |
| local_path | Yes | Absolute path to the local file to upload | |
| content_type | No | MIME type override. Auto-detected from file extension if omitted. | |
| conflict_behavior | No | Conflict behavior: "rename" (default), "replace" overwrites, "fail" returns an error |