get_file_content
Get content of a Google Drive file. Supports export to formats like text/plain or application/pdf with specified encoding.
Instructions
Get file content in various formats
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>"
},
"name": "get_file_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | ID of the file to get content from | |
| mimeType | No | MIME type for export (e.g., 'text/plain', 'application/pdf') | |
| encoding | No | Encoding for text files (e.g., 'utf-8', 'latin1') |