Subscribe to Figma event
figma.subscribe_eventSubscribe to Figma Plugin API events on specified targets and queue them for polling to capture changes.
Instructions
Subscribe to a Figma Plugin API event on figma or another event-capable API target and queue events for polling.
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": {
"eventType": "<eventType>"
},
"name": "figma.subscribe_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| once | No | ||
| nodeId | No | ||
| pageId | No | ||
| target | No | figma | |
| styleId | No | ||
| eventType | Yes | ||
| imageHash | No | ||
| targetPath | No | ||
| variableId | No | ||
| loadAllPages | No | ||
| maxQueueSize | No | ||
| defaultReturn | No | ||
| variableCollectionId | No |