export_file
Export Google Docs, Sheets, or Slides files to formats like PDF, text, or CSV for downloads, sharing, or processing; works only with Google Workspace files.
Instructions
Export a Google Docs, Sheets, or Slides file to another format (PDF, text, CSV, etc.). Only works with Google Workspace files.
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>",
"mimeType": "<mimeType>"
},
"name": "export_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | The ID of the Google Docs/Sheets/Slides file to export. | |
| mimeType | Yes | The target MIME type for export. Common options: "application/pdf", "text/plain", "text/csv", "application/vnd.openxmlformats-officedocument.wordprocessingml.document" (docx). |