Pages: fill placeholders
pages_fill_placeholdersFill tagged placeholders in Apple Pages templates with values, preserving formatting; use dry_run to preview changes on a copy before editing the file.
Instructions
Fill template placeholders by tag, e.g. {"Name": "Sara", "Date": "3 October"}. Formatting is kept; the body is verified to change only there. Needs macOS + Pages. dry_run=true previews the change on a copy without touching the file. Use for template fields (Name, Date). It's the only write for page-layout documents like letters and flyers, which have no body text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the .pages document (absolute, or starting with ~). | |
| values | Yes | Placeholder tag → text, e.g. {"Name": "Sara", "Date": "3 October"} (tags from pages_list_placeholders). | |
| 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 | |||