Append a Show Text dialog
show_textAdds a text dialog to an RPG Maker MZ event page, building command 101 and 401 entries so dialog lines render correctly and never become null.
Instructions
Add a Show Text dialog to an event page. MZ stores a dialog as one command 101 carrying [faceName, faceIndex, background, positionType, speakerName] followed by one command 401 per text line, each holding its line in parameters[0]; this tool builds that shape so lines can never end up as null in $gameMessage._texts.
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>",
"lines": "<lines>"
},
"name": "show_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | One entry per dialog line; escape codes like \N[1] work | |
| mapId | Yes | ||
| indent | No | Use the surrounding block's indent when inserting inside a branch | |
| eventId | Yes | ||
| faceName | No | Face image name from img/faces, default empty | |
| faceIndex | No | ||
| pageIndex | No | ||
| background | No | 0 window, 1 dim, 2 transparent | |
| speakerName | No | ||
| positionType | No | Engine default is 2 |