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.
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 |