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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>",
"replacement": "<replacement>"
},
"name": "find_and_replace_text"
}
}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. |