list_styles
List paragraph, character, or object styles from InDesign, optionally refreshing from the document, to get style names and IDs for applying via apply_style.
Instructions
List paragraph / character / object styles from the Document Model cache (or refresh from InDesign). Prefer after scan_document; use apply_style / execute_batch applyStyle to apply.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| refresh | No | If true, re-read styles from InDesign (default: cache) | |
| styleKind | No | If set, return only that kind; otherwise all three | |
| timeoutSec | No |