add_event_command
Insert commands into RPG Maker MZ event pages to control game actions like displaying text, transferring players, or managing variables.
Instructions
Add a command to an event page (e.g., show text, transfer player, etc.)
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": {
"project_path": "<project_path>",
"map_id": "<map_id>",
"event_id": "<event_id>",
"page_index": "<page_index>",
"code": "<code>",
"parameters": "<parameters>"
},
"name": "add_event_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Command code (e.g., 101=Show Text, 201=Transfer Player, 122=Control Variables) | |
| event_id | Yes | Event ID | |
| map_id | Yes | Map ID | |
| page_index | Yes | Page index (0-based) | |
| parameters | Yes | Command parameters | |
| project_path | Yes | Path to the RPG Maker MZ project directory |