Drive Get
drive_getDownloads Google Drive files to a local cache; exports Docs as Markdown, Sheets as CSV, Slides as PDF, and supports custom export MIME types.
Instructions
Download a Drive file to the local cache directory.
Google Docs, Sheets and Slides are exported: Docs as Markdown, Sheets as
CSV (first sheet only), Slides as PDF. Pass export_mime_type for another
format, for example application/pdf for a Doc or
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet for a
Sheet with several tabs. Other Google-native types need export_mime_type.
For binary files export_mime_type is ignored. Shortcuts cannot be
downloaded; use their target.
The file is saved to ~/.cache/hermes-google/drive/<file_id>/. Use Claude Code's Read tool on the returned path to view the contents.
Returns dict with key: path (absolute local file path).
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": "drive_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | ||
| export_mime_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||