How to update every text layer in a Figma doc from one prompt
Wann einsetzen: You have a spec that renames 50 strings and you do not want to click 50 times.
Voraussetzungen
- Bun installed — curl -fsSL https://bun.sh/install | bash
- Figma desktop open with the plugin linked — Plugins > Development > Link existing plugin > point to src/cursor_mcp_plugin/manifest.json
- WebSocket bridge running — bun run start in the cloned repo
Ablauf
-
Join the channel from the plugin panelJoin Figma channel X7F2 and list all text nodes on the current page.✓ Kopiert→ List of node ids with current text
-
Map old copy to new copyHere is a CSV of old_string,new_string. For every text node whose content matches an old_string, replace with the new_string using set_multiple_text_contents.✓ Kopiert→ Count of updates applied, diff preview
-
Spot-check visuallyExport the three frames that had the most edits as PNGs so I can review.✓ Kopiert→ PNG URLs / file paths
Ergebnis: A copy-reviewed file with every string updated and a before/after export to prove it.
Fallstricke
- Plugin disconnects mid-operation — set_multiple_text_contents is idempotent — re-run with the same mapping; already-correct nodes are skipped
- Text in components vs instances confuses updates — Use get_instance_overrides first to see which instances override the base text