Get File Content
drive_get_fileDownload a file from Google Drive by providing its file ID. Returns binary content for PDFs, images, and other files.
Instructions
Download and return the content of a file from Google Drive. Supports PDFs, images, and other binary files.
Args:
file_id (string): The ID of the file to download (found in the URL after /d/)
Returns: The file content. For PDFs and images, returns the binary content that Claude can read directly.
Examples:
Get PDF: file_id="1Q3BmlH3_sII1VGf0-GYXSiLGTZstM-l1"
From URL https://drive.google.com/file/d/ABC123/view -> file_id="ABC123"
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_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | The ID of the file to download (found in the URL) |