Copy a file
copy_drive_fileMakes a copy of a file or a whole folder in a drive and folder the person can add to.
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": {
"workspace": "<workspace>",
"fileId": "<fileId>",
"destinationDriveId": "<destinationDriveId>"
},
"name": "copy_drive_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| fileId | Yes | File or folder id from list_drive_files, search or fetch. | |
| workspace | Yes | Workspace slug from workspaces.list, e.g. "acme". | |
| destinationDriveId | Yes | Drive id from list_drives. | |
| destinationParentId | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes |