copy_item
Copy files or folders in OneDrive or SharePoint by specifying the item ID or path and destination folder.
Instructions
Copy a file or folder in OneDrive or SharePoint
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": "copy_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| itemId | No | Item ID to copy | |
| itemPath | No | Alternative: item path to copy | |
| destinationFolderId | No | Destination folder ID | |
| destinationFolderPath | No | Alternative: destination folder path | |
| newName | No | New name for the copied item (optional) | |
| siteId | No | SharePoint site ID (optional) | |
| site | No | Known SharePoint site alias or canonical URL | |
| siteUrl | No | Canonical SharePoint site URL (optional alternative to siteId) | |
| driveId | No | Drive ID for a specific document library (optional) | |
| destinationSiteId | No | Destination SharePoint site ID (optional) |