scan_document
Scans the active InDesign document into the session cache and assigns stable UUID labels. Use once per session before planning edits; then execute batch operations.
Instructions
Scan the active InDesign document into the session Document Model cache and write stable mcp: labels. Call ONCE per session before planning edits; then use execute_batch (not repeated scans).
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": "scan_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | full (default) includes styles, layers, links, selection; minimal is pages+items only | |
| timeoutSec | No | ||
| writeUuids | No | Write mcp:<uuid> script labels (default true) | |
| captureSnapshot | No | Optionally capture a snapshot after scan (default: before) |