Delete a trigger
delete_triggerDelete a trigger file from a scene's triggers directory, removing its onEnter and onLeave scripts. A cross-reference check runs for safety; use force to override.
Instructions
Delete one trigger file from a scene's triggers/ directory. Triggers are rarely referenced by other scripts (they only run on enter/leave), but the cross-reference check still runs for safety. Pass force: true to override. The trigger's own onEnter / onLeave scripts go away with the file.
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": {
"sceneId": "<sceneId>",
"triggerId": "<triggerId>"
},
"name": "delete_trigger"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Skip the cross-reference check. | |
| sceneId | Yes | Scene id (UUID) the trigger lives in. | |
| triggerId | Yes | Trigger id (UUID) to delete. |