execute_operation
Perform a single InDesign operation: move, resize, delete, duplicate, edit text, change font/fill, or apply a style, with optional checkpoint for rollback before risky edits.
Instructions
Thin single-op wrapper around execute_batch (checkpoint/move/resize/delete/duplicate/setText/replaceText/setFont/setFill/applyStyle). op=checkpoint saves an .indd copy to _checkpoints/ next to the document and needs no target — run it before a risky sequence of edits. Prefer execute_batch when issuing two or more ops.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| dx | No | ||
| dy | No | ||
| op | Yes | ||
| tag | No | checkpoint only: short reason, becomes part of the filename | |
| fill | No | ||
| find | No | ||
| keep | No | checkpoint only: keep the N newest copies (default 12) | |
| text | No | ||
| style | No | ||
| width | No | ||
| height | No | ||
| target | No | Required for every op except checkpoint | |
| replace | No | ||
| fontStyle | No | ||
| matchCase | No | ||
| styleKind | No | ||
| fontFamily | No | ||
| fontSizePt | No | ||
| timeoutSec | No | ||
| skipCheckpoint | No | Mutate with no way back (default false) |