add_legend
Add a color legend to a Figma frame to label chart or data series. Specify the frame and legend items to clarify visual mappings.
Instructions
Add a color legend.
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": {
"frameId": "<frameId>",
"items": "<items>"
},
"name": "add_legend"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| frameId | Yes |