apply_style
Apply paragraph or character styles to selected text or frames. Specify style name, type, and target to programmatically format InDesign documents.
Instructions
Applies a paragraph or character style to selected text or a frame.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Frame page (when target='frame') | |
| target | No | Target: current selection or frame | selection |
| styleName | Yes | Name of the style to apply | |
| styleType | No | Style type | paragraph |
| frameIndex | No | Frame index (when target='frame') |