set_interaction_data
set_interaction_dataStore interaction event and target mappings in Figma node pluginData for non-prototype components.
Instructions
Store interaction mapping in pluginData for a node (non-prototype).
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>"
},
"name": "set_interaction_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | ||
| event | No | ||
| targetId | No |