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
Input Schema
Name | Required | Description | Default |
---|---|---|---|
eventType | Yes | ||
filter | No | ||
subscribe | Yes | ||
subscriptionId | No |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"eventType": {
"type": "string"
},
"filter": {},
"subscribe": {
"type": "boolean"
},
"subscriptionId": {
"type": "string"
}
},
"required": [
"eventType",
"subscribe"
],
"type": "object"
}