set_interactive
Make a layer tappable or draggable so clicks fire triggers and drags can follow the cursor, drive a parameter, or scrub a timeline.
Instructions
Make a layer interactive: tappable (fires click triggers) and/or draggable (fires drag events). Drag can follow the cursor, drive a parameter (setsParameter), or scrub a timeline (scrubsTimeline).
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": {
"layerId": "<layerId>"
},
"name": "set_interactive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layerId | Yes | Layer to make interactive | |
| dragAxis | No | Drag axis (default both) | |
| tappable | No | Fire click triggers on tap | |
| dragRange | No | Px distance for progress=1 (default 200) | |
| draggable | No | Enable dragging | |
| requestId | No | ||
| sessionId | No | ||
| followCursor | No | Layer follows cursor while dragging | |
| setsParameter | No | Parameter id set with drag progress 0-1 | |
| scrubsTimeline | No | Timeline id scrubbed by drag progress | |
| expectedRevision | No |