copy_drive_file
Duplicate a Google Drive file, including Google Docs, Sheets, or Slides. Preserves formatting and content; optionally rename or place in a different folder.
Instructions
Duplicate a Drive file (including Google Docs/Sheets/Slides).
Side effects: creates a new owned-by-caller file; formatting and content are preserved. For folders use copy_drive_folder (deep copy). For Google Docs specifically this is the standard "duplicate from template" pattern — copy, then edit via batch_update_doc. Requires the drive.file OAuth scope.
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": {
"user_google_email": "<user_google_email>",
"file_id": "<file_id>"
},
"name": "copy_drive_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | Yes | The user's Google email address (authenticated account). | |
| file_id | Yes | Drive file ID of the source. | |
| new_name | No | Name for the copy. Defaults to "Copy of <original>". | |
| parent_folder_id | No | Target folder ID. Default "root" (My Drive). Shared-drive folder IDs work. | root |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |