find_replace_text
Replace text across Figma text nodes by specifying a substring and replacement. Optionally scope the search to a node, enable case-sensitive matching, and receive the IDs of updated text nodes.
Instructions
Replace a substring across all TEXT nodes under a scope. Without root the whole current page is searched; matching is case-insensitive unless caseSensitive is true. Fonts are loaded before each edit. Returns { ok, affected } — the text node ids changed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | Yes | Substring to find (non-empty) | |
| root | No | Optional node id to scope the search (default: page) | |
| replace | Yes | Replacement string | |
| caseSensitive | No | Match case (default false) |