Append event commands
add_commandsAppend raw {code, indent, parameters} commands to an RPG Maker MZ page while keeping the terminating code-0 entry last. Use command_catalog for parameter layout; warnings flag indent mismatches.
Instructions
Append raw {code, indent, parameters} commands to a page, keeping the terminating code-0 entry last. Use command_catalog first to learn the parameter layout of a code. The page's block structure is re-read after the append, and anything whose indent does not match the branch it sits under comes back in warnings.
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_commands"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | No | Insert before this list index instead of appending before the terminator | |
| mapId | Yes | ||
| eventId | Yes | ||
| commands | Yes | ||
| pageIndex | No |