Keynote: format text
keynote_format_textChange the font, size, or color of one text item on a Keynote slide by index or matching text, with dry-run preview.
Instructions
Font (PostScript name, e.g. "HelveticaNeue-Bold"), size (pt) and/or colour ("#RRGGBB") of one text item on a slide — pick it by item index (from keynote_inspect_style) or by a unique piece of its text (match). Alignment and shape fill are not scriptable. dry_run=true previews the change on a copy without touching the file. Use for one text item's font, size or colour. To restyle the whole deck consistently use keynote_apply_design.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| font | No | PostScript font name, e.g. "HelveticaNeue-Bold". | |
| item | No | Text item index on the slide (from keynote_inspect_style); or use match. | |
| path | Yes | Path to the .key deck (absolute, or starting with ~). | |
| size | No | Font size in points. | |
| color | No | Text colour "#RRGGBB". | |
| match | No | A unique piece of the item's text, to pick it instead of item. | |
| slide | Yes | Slide number, 1-based (keynote_list_slides lists them). | |
| dry_run | No | true = make the change on a throwaway copy, run every check, and return what would change; the file itself is not touched. Use it before broad or risky edits and show the user. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||