find_and_replace_text
Search Figma TEXT nodes for a literal string or regex and replace matches, optionally across all pages. Preview changes with dryRun before committing.
Instructions
Search TEXT node characters for a literal string or regex and replace matches, optionally across every page in the file (not just the current one). Pass dryRun: true first to preview matches before committing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| dryRun | No | Preview matches without writing changes. | |
| allPages | No | Default false: only search the current page. | |
| useRegex | No | ||
| matchCase | No | ||
| wholeWord | No | Ignored when useRegex is true. | |
| rootNodeId | No | Restrict the search to this node's subtree on the current page. Ignored on other pages when allPages is true. | |
| replacement | Yes | ||
| maxPreviewLength | No | Truncate before/after preview snippets in dryRun results. Default 200. |