Drive Copy File
drive_copy_fileCreate a copy of a Google Drive file, such as a template Doc or Sheet, with an optional new name, description, and destination folder; the original remains unchanged.
Instructions
Make a copy of a Drive file, such as duplicating a template Doc or Sheet. To relocate the original instead use drive_move_file, and to rename it drive_update_file_metadata. Returns status 'ok' and file (id, name, kind, mime_type, size, size_bytes, parent_ids, drive_id, web_url, trashed; null where the change does not report it) of the new copy; the source file is unchanged.
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": {
"file_id": "<file_id>"
},
"name": "drive_copy_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name of the copy; omit to let Drive name it. | |
| file_id | Yes | Drive file ID: the id field of Drive and search_workspace results, or the long ID in a Drive, Docs, Sheets or Slides URL. | |
| parent_ids | No | One destination folder ID (or a shared drive ID for its top level); omit to place the copy in the source file's folder. | |
| description | No | Optional description to set on the new copy. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| status | No | Machine-readable operation status. |