suggest_tokens
Analyzes a Figma node and its context to suggest ranked design tokens from the catalog, helping tokenize elements when naming conventions are unclear.
Instructions
Suggest tokens from the loaded catalog that fit a Figma node, ranked. Reads the node + nearby context (name, type, parent variant axes, tokens already applied to siblings) and scores every catalog token of compatible type. Returns the top N with reasoning per candidate. Use this when the design system's naming convention isn't obvious or when the user just says 'tokenize this' without spelling out paths.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "suggest_tokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | ||
| url | No | ||
| nodeId | No | ||
| fileKey | No | ||
| propertyKey | No |