Create a new trigger in a scene
create_triggerCreate a rectangular trigger zone in a game scene that runs scripts on player entry or exit, with a limit of 30 triggers per scene.
Instructions
Append a new trigger file under project/scenes//triggers/. Triggers are rectangular zones that fire script on player enter and leaveScript on exit. Enforces MAX_TRIGGERS=30 per scene. Coordinates and size are in tiles.
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>",
"name": "<name>",
"x": "<x>",
"y": "<y>"
},
"name": "create_trigger"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X position in tiles. | |
| y | Yes | Y position in tiles. | |
| name | Yes | Display name — also seeds the slug. | |
| width | No | Width in tiles. Default 1. | |
| height | No | Height in tiles. Default 1. | |
| symbol | No | Override auto-generated GBVM symbol. | |
| sceneId | Yes | Target scene id (UUID). |