set_annotation
Attach an annotation label to a Figma node by providing the node ID and label text. This action uses the proposed Annotations API in Figma Desktop.
Instructions
Add an annotation label to a node in Figma. Uses the proposed Annotations API — requires Figma Desktop with enableProposedApi.
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": {
"nodeId": "<nodeId>",
"label": "<label>"
},
"name": "set_annotation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | The ID of the node to annotate | |
| label | Yes | The annotation label text |