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).
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": "get_document_model"
}
}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) |