copy_file
Copy a Google Drive file to a new name or destination folder, returning the new file’s ID, name, MIME type, parent, and link.
Instructions
Copy a file in Google Drive.
Args: file_id: The ID of the file to copy. new_name: Name for the copy. Defaults to 'Copy of '. folder_id: Destination folder ID. Defaults to the same folder as the original.
Returns: fileId, name, mimeType, parent, and webViewLink of the new copy.
Note: Requires OAuth or ADC auth. Service accounts cannot copy files into personal Drive (no storage quota). Works on Shared Drives regardless of auth method. Check server://auth-status for your current auth method.
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 | ||
| new_name | No | ||
| folder_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||