files
Manage OneDrive and SharePoint content by listing, uploading, downloading, searching, sharing, moving, copying, and deleting items or creating folders.
Instructions
Manage OneDrive and SharePoint files: list, get, upload, download, cleanup_download, delete, share, search, move, copy, create_folder
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": {
"operation": "<operation>"
},
"name": "files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Folder name | |
| path | No | File path (alternative to fileId, or local temp path for cleanup_download) | |
| type | No | Share permission type | |
| query | No | Search query | |
| scope | No | Share scope | |
| fileId | No | File or folder ID | |
| siteId | No | SharePoint site ID | |
| content | No | File content to upload | |
| driveId | No | Drive ID (required for SharePoint files; returned by search as DriveID) | |
| newName | No | New name for file/folder | |
| fileName | No | Name for uploaded file | |
| folderId | No | Folder ID to list contents | |
| parentId | No | Parent folder ID | |
| password | No | Password for shared link | |
| fileTypes | No | File types to filter (e.g., ['docx', 'pdf']) | |
| operation | Yes | The operation to perform | |
| maxResults | No | Maximum number of results | |
| parentPath | No | Parent folder path | |
| recipients | No | Email addresses to share with | |
| searchScope | No | Search scope: 'me' (OneDrive only), 'sites' (SharePoint only), 'all' (both). Default: 'all' | |
| contentBase64 | No | Strict RFC 4648 base64 for binary file content; mutually exclusive with content | |
| destinationId | No | Destination folder ID | |
| conflictBehavior | No | How to handle naming conflicts | |
| expirationDateTime | No | Expiration for shared link |