upload_document
Upload documents to SharePoint by providing text content directly or base64-encoded files for binary data, specifying destination folder and file name.
Instructions
Upload a new document to SharePoint. For text content, provide the content directly. For binary files, provide base64-encoded content.
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": {
"file_name": "<file_name>",
"content": "<content>"
},
"name": "upload_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder_path | No | Destination folder path | |
| file_name | Yes | Name for the uploaded file | |
| content | Yes | File content (text or base64-encoded) | |
| is_base64 | No | Set to true if content is base64-encoded |