close_document
Close an InDesign document by specifying its name or forcing the active document. Optionally discard unsaved changes to avoid prompts.
Instructions
Close a document only when the target is unambiguous. Modified documents require allowDiscard.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| allowDiscard | No | Explicitly discard unsaved changes when closing the target document | |
| forceActiveDocument | No | Explicitly close the active document even when multiple documents are open | |
| expectedDocumentName | No | Optional document name to close when multiple documents are open |