graph_copy_file
Copies a OneDrive file or folder to a chosen destination folder with an optional new name, using Microsoft Graph’s asynchronous copy operation.
Instructions
Copy a file or folder in OneDrive.
The copy is asynchronous: Graph returns 202 with a monitor URL rather than the finished item, so the new item may not exist yet when this call returns.
Args: item_id: The file or folder ID to copy. destination_folder_id: Destination folder ID. Empty to copy into the current parent. new_name: Name for the copy. Empty to keep the current name. drive_id: Drive ID to act on. Empty targets your own OneDrive.
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": {
"item_id": "<item_id>"
},
"name": "graph_copy_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_id | Yes | ||
| drive_id | No | ||
| new_name | No | ||
| destination_folder_id | No |