get_document_model
Access a cached summary of the active InDesign document to avoid rescanning, with optional forced refresh. Quickly retrieve document structure, styles, and layout data for further processing.
Instructions
Return a summary of the cached Document Model without rescanning InDesign (unless forceRefresh or cache empty).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxAgeMs | No | If cache older than this, rescan | |
| timeoutSec | No | ||
| forceRefresh | No | If true, rescan before returning | |
| includeItems | No | Include full items array (can be large) |