download_file
Save a Google Drive file to a local path. Exports Google-native files to common formats and refuses to overwrite unless specified.
Instructions
Save a file to a local absolute path. Google-native files are exported (Docs to docx, Sheets to xlsx, Slides to pptx, Drawings to png by default; pass format to change). Refuses to overwrite unless overwrite is true.
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": {
"fileId": "<fileId>",
"destinationPath": "<destinationPath>"
},
"name": "download_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | ||
| format | No | Export format for Google-native files. | |
| overwrite | No | ||
| destinationPath | Yes | Absolute path of the file to write, or of an existing directory to save into using the Drive name. |