drive_copy_file
Copy any Google Drive file to another folder with an optional new name, without overwriting existing files. The copy happens server-side, preserving file type and leaving the original untouched.
Instructions
Copy a Google Drive file into a folder on the same account, optionally under a new name. Drive performs the copy on its side, so no bytes pass through this server; a Google Doc or Sheet copies as the same Google type, a PDF or image byte for byte, and a copy from My Drive into a shared drive works. The copy's description records the source file and time, appended to any description the source already had. Refuses when a file with the resulting name already exists in the target folder rather than overwriting it, and refuses a folder as the source. Only copies: it cannot delete, move, rename, share, or overwrite anything, and it never modifies the source.
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": {
"account": "<account>",
"fileId": "<fileId>",
"targetFolderId": "<targetFolderId>"
},
"name": "drive_copy_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | Drive file id to copy. Must be a file, not a folder. | |
| account | Yes | Configured Gmail account alias, e.g. work, personal, support. | |
| newName | No | Name of the copy. Defaults to the source file's name. | |
| targetFolderId | Yes | Destination Drive folder id the copy is placed in. |