build_control_switch
Generate an RPG Maker MZ event command to turn a game switch or self switch on or off, ready for direct insertion into event command lists.
Instructions
Build a Control Switches (121) or Control Self Switch (123) event command for insertion via insert_event_commands. scope "switch": set a switch (or the inclusive switchId..endId range) on/off. scope "self_switch": set the current event's self switch A–D. Read-only: returns { command }.
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": {
"scope": "<scope>"
},
"name": "build_control_switch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | self_switch: which self switch | |
| endId | No | switch: inclusive range end (default = switchId, a single switch) | |
| scope | Yes | "switch" (global, by id/range) or "self_switch" (this event, A–D) | |
| value | No | Set on (default) or off | |
| indent | No | Indentation level (default 0) | |
| switchId | No | switch: the switch id (range start) |