propose_token_remap
Plan a token remap for a Figma subtree against a new token set by analyzing current tokens and proposing candidate mappings with scores and reasoning. Flags ambiguous cases for user resolution before applying.
Instructions
Plan a token remap for a Figma subtree against a NEW token set the user pasted as JSON. Read-only — does NOT touch the Figma file. Returns candidate new tokens (with scores + reasoning) for every old token currently applied in the subtree, plus an ambiguous list where the agent should pick. Pass the returned plan to apply_token_remap once you've resolved ambiguity. Accepts any reasonable shape for newTokens (Tokens Studio export, single-set object, DTCG, or a flat list of paths).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| depth | No | ||
| hints | No | ||
| nodeId | No | ||
| fileKey | No | ||
| newTokens | Yes | ||
| preferredTheme | No |