Add event commands
add_event_commandInsert event commands into an event page's command list at a specified position or before the terminating entry.
Instructions
Insert commands into an event page's command list without resending the whole event. Commands are inserted before the page's terminating {code: 0} entry (or at index if given). Multi-line constructs work naturally, e.g. Show Text is one code-101 command followed by code-401 commands. See event_command_reference for codes.
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": {
"mapId": "<mapId>",
"eventId": "<eventId>",
"commands": "<commands>"
},
"name": "add_event_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | Position in the list to insert at; defaults to the end (before the terminator) | |
| mapId | Yes | ||
| eventId | Yes | ||
| commands | Yes | Commands to insert, in order | |
| pageIndex | No | Which event page (0-based) |