copy_file
Create a duplicate of Google Drive files to preserve originals while editing or sharing. Specify file ID, optional new name, and folder location for the copy.
Instructions
Create a copy of a file in Google Drive.
Returns the new file's ID and web link.
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": "copy_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | The ID of the file to copy | |
| new_name | No | ||
| parent_folder_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |