subscribe_event
Enable real-time Figma event monitoring or cessation by subscribing or unsubscribing to specific events (e.g., selection_change, document_change). Returns a subscription ID for subscriptions and a success status for unsubscriptions.
Instructions
Subscribe or unsubscribe to a Figma event (e.g., selection_change, document_change).
Returns: { subscriptionId } for subscribe, { success: true } for unsubscribe
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>",
"subscribe": "<subscribe>"
},
"name": "subscribe_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| eventType | Yes | ||
| filter | No | ||
| subscribe | Yes | ||
| subscriptionId | No |