Write a OneDrive file
m365_files_uploadWrite a text file (up to 4 MB) to a path in a mailbox user's OneDrive. If the file exists it is kept and the new one renamed, unless if_exists is replace (which waits for the owner's approval by default) or fail. $0.001. Costs $0.001 per call; nothing if it fails.
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": {
"path": "<path>",
"content": "<content>"
},
"name": "m365_files_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes | ||
| mailbox | No | One of the mailboxes the agent may act as; optional when only one is connected. | |
| if_exists | No | rename |