recipe_exportPreset
Export the active InDesign document to PDF with a named export preset. Validates the preset name first and, if invalid, returns the list of valid presets.
Instructions
Export the active document to PDF using a named PDF export preset in one call — validates the preset first and, if it is wrong, fails with the list of valid preset names
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": {
"presetName": "<presetName>",
"filePath": "<filePath>"
},
"name": "recipe_exportPreset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | Custom timeout in ms | |
| filePath | Yes | Absolute path of the PDF to write | |
| presetName | Yes | Name of an existing PDF export preset, e.g. "[Press Quality]" — the error lists the valid names | |
| document_id | No | Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document. | |
| documentIndex | No | Index into the open-document list (see document_getState); defaults to the front document |