export_document
Export the active InDesign document to PDF, JPG, PNG, EPUB, HTML, or package. Specify format and optional path or document ID to save output.
Instructions
Export the active document to a specified format (PDF, JPG, PNG, EPUB, HTML, package)
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": {
"format": "<format>"
},
"name": "export_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | Yes | ||
| options | No | ||
| filePath | No | ||
| document_id | No | Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document. |