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.
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": {
"find": "<find>",
"replace": "<replace>"
},
"name": "find_replace_text"
}
}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. |