find_replace_text
Find and replace text strings or regex patterns across all text layers in a Figma page or subtree. Specify a root node to scope the search, or leave blank to search the entire page.
Instructions
Find and replace text content across all TEXT nodes in a subtree. Searches the entire current page if no nodeId is given.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | Yes | Text string (or regex pattern when useRegex=true) to search for | |
| nodeId | No | Root node ID to scope the search. Defaults to the entire current page. | |
| replace | Yes | Replacement string (use empty string to delete matches) | |
| useRegex | No | Treat find as a regular expression (default false) | |
| regexFlags | No | Regex flags e.g. 'gi' (default 'g'). Only used when useRegex=true. |