document_close
Close an open InDesign document and control save behavior: save, skip saving, or prompt. Target a document by name or index; defaults to the front document.
Instructions
Close the active InDesign document with save options
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": "document_close"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_id | No | Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document. | |
| saveOptions | No | no |