penpot_replace_text
Find and replace text strings in all text shapes on a Penpot page. Supports case-insensitive matching and returns updated shape IDs and replacement count.
Instructions
Find and replace text across all text shapes on a page in a single update-file call. Searches each text run (leaf node) of every text shape for the literal "search" string and replaces every occurrence with "replacement". Matching is case-insensitive by default (set caseSensitive: true to override). Replacement is per text-run: a search string that spans two adjacent runs in the same paragraph will not be matched. Returns the ids and names of every shape that was modified and the total number of occurrences replaced.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| fileId | Yes | ||
| pageId | Yes | ||
| search | Yes | ||
| replacement | Yes | ||
| caseSensitive | No |