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).
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": {
"newTokens": "<newTokens>"
},
"name": "propose_token_remap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| depth | No | ||
| hints | No | ||
| nodeId | No | ||
| fileKey | No | ||
| newTokens | Yes | ||
| preferredTheme | No |