docs_export
Download a Google Doc to a local file in formats such as docx, pdf, markdown, text, html, odt, rtf, or epub, with optional overwrite and account selection.
Instructions
Download a Google Doc to a local file as docx, pdf, odt, rtf, epub, markdown, text or html.
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": {
"doc": "<doc>",
"format": "<format>",
"path": "<path>"
},
"name": "docs_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | Google Docs URL or document id. | |
| path | Yes | Absolute file path to write. The extension is added if missing. | |
| format | Yes | ||
| account | No | Which signed-in Google account to use: an index as in /u/N/ URLs (0 = first account) or an email address. Omit for the browser default. Use this for documents owned by a second (e.g. school) account. | |
| overwrite | No | Replace an existing file. Default false. |