close_document
Close the active InDesign document, choosing how to handle unsaved changes via ASK, SAVE, or DISCARD options.
Instructions
Close the active document. Use saveOptions to control unsaved-changes behavior.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "close_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| saveOptions | No | What to do with unsaved changes. ASK (default) opens InDesign save dialog. SAVE saves first. DISCARD throws away changes. | ASK |