walk_and_replace_text
Walk through a Figma node subtree to replace exact text matches, including in library instance sublayers that standard methods cannot access.
Instructions
Walk entire node subtree and replace text by exact match. Works on library instance sublayers that getNodeByIdAsync cannot access.
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": {
"nodeId": "<nodeId>",
"replacements": "<replacements>"
},
"name": "walk_and_replace_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | Root node ID to start walking from | |
| replacements | Yes | Array of text replacements |