rpgmaker-mz-mcp

v1.4.0
io.github.Redseb/rpgmaker-mz-mcp Checked 2 days ago Published 2 months ago

MCP server for RPG Maker MZ: maps, tile painting, events, database editing, and validation.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_project

Get the project directory the server is currently operating on: its path, whether it is a valid RPG Maker MZ project, and the game title it holds.

set_project

Point the server at a different RPG Maker MZ project directory for the rest of the session (overrides RPGMAKER_PROJECT_PATH until the server restarts). The directory must contain game.rmmzproject and data/System.json.

ParameterTypeDescription
path *stringPath to the RPG Maker MZ project directory (a leading ~ is expanded).

update_actor

Update an actor's properties

ParameterTypeDescription
actorId *integerThe ID of the actor to update
updates *objectObject containing actor properties to update
dryRunbooleanPreview only: return a diff of what would change without writing to disk.

create_actor

Create a new actor in data/Actors.json. Only `name` is required; omitted fields use the editor's new-actor defaults (class 1, level 1-99, five empty equip slots, no traits). Allocates and returns the next unused actor id. NOTE: an actor's physical accuracy comes from its class + own traits — a class/actor with no Hit Rate trait (xparam id 0: trait { code: 22, dataId: 0, value: 0.95 }) always misses physical actions. The built-in class 1 has one; a custom class needs it added.

ParameterTypeDescription
name *string
battlerNamestring
characterIndexinteger
characterNamestring
classIdinteger
dryRunbooleanPreview only: return a diff of what would change without writing to disk.
equipsarray
faceIndexinteger
faceNamestring
initialLevelnumber
maxLevelnumber
nicknamestring
notestring
profilestring
traitsarray

search_actors

Search actors by name or nickname

ParameterTypeDescription
searchTerm *stringThe search term to find actors

create_item

Create a new item in data/Items.json. Only `name` is worth passing; omitted fields use the editor's new-item defaults (Regular Item, consumable, no effects). Allocates and returns the next unused item id. An effect referencing a missing record throws: Add/Remove State (code 21/22) → state, Learn Skill (43) → skill, Common Event (44) → common event.

ParameterTypeDescription
name *stringItem name
animationIdintegerAnimation id shown on use
consumablebooleanConsumed on use
damageobjectDamage object { type, elementId, formula, variance, critical }
descriptionstringIn-game description text
dryRunbooleanPreview only: return a diff of what would change without writing to disk.
effectsarrayEffect objects { code, dataId, value1, value2 }
hitTypeinteger0 certain, 1 physical, 2 magical
iconIndexintegerIcon index (IconSet.png)
itypeIdintegerItem type: 1 Regular, 2 Key Item, 3 Hidden A, 4 Hidden B
notestringNote field
occasionintegerUsable: 0 always, 1 battle, 2 menu, 3 never
priceintegerBuy price (sells for half)
repeatsintegerNumber of hits/repeats
scopeintegerTarget scope (0 none, 1 one enemy, 7 one ally, …)
speedintegerSpeed correction (positive acts earlier)
successRateintegerSuccess rate percent
tpGainintegerUser TP gained on use

update_item

Update an item's properties (shallow merge into the existing record)

ParameterTypeDescription
itemId *integerThe ID of the item to update
updates *objectObject containing item properties to update
dryRunbooleanPreview only: return a diff of what would change without writing to disk.

search_items

Search items by name or description

ParameterTypeDescription
searchTerm *stringThe search term to find items

create_weapon

Create a new weapon in data/Weapons.json. Only `name` is required; omitted fields use the editor's new-weapon defaults (Weapon equip slot, no stat bonuses). `params` is a flat 8-length stat bonus [maxHP, maxMP, atk, def, mat, mdf, agi, luk]. Allocates and returns the next unused weapon id.

ParameterTypeDescription
name *stringWeapon name
animationIdintegerAttack animation id
descriptionstringIn-game description text
dryRunbooleanPreview only: return a diff of what would change without writing to disk.
iconIndexintegerIcon index (IconSet.png)
notestringNote field
paramsarray8 flat stat bonuses [maxHP, maxMP, atk, def, mat, mdf, agi, luk]
priceintegerBuy price
traitsarrayTrait objects { code, dataId, value }
wtypeIdintegerWeapon type id (System.json weaponTypes)

update_weapon

Update a weapon's properties (shallow merge into the existing record)

ParameterTypeDescription
updates *objectObject containing weapon properties to update
weaponId *integerThe ID of the weapon to update
dryRunbooleanPreview only: return a diff of what would change without writing to disk.

create_armor

Create a new armor in data/Armors.json. Only `name` is required; omitted fields use the editor's new-armor defaults (Shield equip slot, no stat bonuses). `params` is a flat 8-length stat bonus; `etypeId` is the equip slot (System.json equipTypes: 2 Shield, 3 Head, 4 Body, 5 Accessory). Allocates and returns the next unused armor id.

ParameterTypeDescription
name *stringArmor name
atypeIdintegerArmor type id (System.json armorTypes)
descriptionstringIn-game description text
dryRunbooleanPreview only: return a diff of what would change without writing to disk.
etypeIdintegerEquip slot (equipTypes: 2 Shield, 3 Head, 4 Body, 5 Accessory)
iconIndexintegerIcon index (IconSet.png)
notestringNote field
paramsarray8 flat stat bonuses [maxHP, maxMP, atk, def, mat, mdf, agi, luk]
priceintegerBuy price
traitsarrayTrait objects { code, dataId, value }

update_armor

Update an armor's properties (shallow merge into the existing record)

ParameterTypeDescription
armorId *integerThe ID of the armor to update
updates *objectObject containing armor properties to update
dryRunbooleanPreview only: return a diff of what would change without writing to disk.

create_skill

Create a new skill with custom properties. Omitted fields use new-skill defaults: stypeId 1 (Magic), scope 1, occasion 1 (battle only), hitType derived — 0 certain for recovery or ally/user scopes, else 2 magical for Magic skills, else 1 physical if it deals damage, else 0. An effect referencing a missing record throws: Add/Remove State (code 21/22) → state, Learn Skill (43) → skill, Common Event (44) → common event.

ParameterTypeDescription
name *stringSkill name
animationIdintegerAnimation ID
damageobjectDamage configuration
descriptionstringSkill description
dryRunbooleanPreview only: return a diff of what would change without writing to disk.
effectsarraySkill effects (buffs, debuffs, states, etc.)
hitTypeinteger0 certain hit, 1 physical (HIT/EVA, counterable), 2 magical (MEV, reflectable). Default derived from stypeId/scope/damage
iconIndexintegerIcon index (0-1000+)
message1stringBattle message (line 1, %1 = user name)
message2stringBattle message line 2
mpCostnumberMP cost
notestringNote field (notetags)
occasionintegerUsable: 0 always, 1 battle only (default), 2 menu only, 3 never
repeatsintegerNumber of hits (1-9). Default 1
requiredWtypeId1integerRequired weapon type 1 (0=none)
requiredWtypeId2integerRequired weapon type 2 (0=none)
scopeintegerTarget scope (1=enemy single, 2=enemy all, 7=ally all, etc.)
speedintegerSpeed correction (-2000..2000; positive acts earlier). Default 0
stypeIdintegerSkill type (0=none — typical for enemy-only skills, not sealed by Silence; 1=magic, 2=special, etc.). Default 1
successRateintegerSuccess rate percent. Default 100
tpCostnumberTP cost
tpGainintegerUser TP gained on use. Default 0

create_damage_skill

Create a damage-dealing skill (simplified)

ParameterTypeDescription
damageFormula *stringDamage formula (e.g., "a.mat * 4")
mpCost *numberMP cost
name *stringSkill name
scope *integerTarget scope (1=enemy single, 2=enemy all)
descriptionstringSkill description
dryRunbooleanPreview only: return a diff of what would change without writing to disk.
elementIdintegerElement ID (0=none, 2=fire, 3=ice, 4=thunder)

create_healing_skill

Create a healing skill (simplified)

ParameterTypeDescription
healFormula *stringHeal formula (e.g., "a.mat * 3 + 100")
mpCost *numberMP cost
name *stringSkill name
scope *integerTarget scope (7=ally all, 11=user)
descriptionstringSkill description
dryRunbooleanPreview only: return a diff of what would change without writing to disk.

create_buff_skill

Create a buff skill (simplified)

ParameterTypeDescription
buffType *integerBuff type (2=ATK, 3=DEF, 4=MAT, 5=MDF, 6=AGI)
mpCost *numberMP cost
name *stringSkill name
scope *integerTarget scope (7=ally all, 11=user)
turns *numberNumber of turns the buff lasts
descriptionstringSkill description
dryRunbooleanPreview only: return a diff of what would change without writing to disk.

create_state_skill

Create a state-inflicting skill (poison, sleep, etc.). Throws if `stateId` does not exist in States.json (create the state first with create_state).

ParameterTypeDescription
chance *numberSuccess chance (0.0-1.0)
mpCost *numberMP cost
name *stringSkill name
scope *integerTarget scope (1=enemy single, 2=enemy all)
stateId *integerState ID (4=poison, 5=blind, 6=silence, 8=confusion, etc.)
descriptionstringSkill description
dryRunbooleanPreview only: return a diff of what would change without writing to disk.

update_skill

Update a skill's properties

ParameterTypeDescription
skillId *integerThe skill ID to update
updates *objectProperties to update
dryRunbooleanPreview only: return a diff of what would change without writing to disk.

search_skills

Search skills by name or description

ParameterTypeDescription
searchTerm *stringSearch term

get_map

Get map data by ID. The tile `data` array can be huge on a painted map (width*height*6 ints) and blow the MCP token limit, so pass includeData:false to omit it (you get dataTileCount instead) and read tiles with get_map_region when needed. includeData defaults to true for backward compatibility.

ParameterTypeDescription
mapId *integerThe ID of the map to retrieve
includeDatabooleanInclude the full tile `data` array (default true). Pass false to omit it (returns dataTileCount) and avoid the token cost of a big painted map.

get_map_region

Read the raw tile ids in a rectangular window of one map layer — a token-cheap alternative to get_map for inspecting part of a painted map. Returns `tiles` as a 2D array (rows top→bottom, each left→right) of raw engine tile ids. The rectangle must lie fully within the map bounds (throws otherwise). layer defaults to 0 (see set_map_tile for the z-layer meanings).

ParameterTypeDescription
height *integerWindow height in tiles
mapId *integerThe ID of the map
width *integerWindow width in tiles
x *integerLeft edge of the window (tile column)
y *integerTop edge of the window (tile row)
layerintegerZ-layer 0-5 (0-1 lower, 2-3 upper, 4 shadow, 5 region); default 0

get_map_infos

Get information about all maps

create_map

Create a new blank map: writes a new data/MapNNN.json (all tiles unpainted) and registers it in the map tree (MapInfos.json). Allocates the next unused map id and returns it. Paint tiles afterward with paint_tiles/fill_area (autotile-aware) and add events with create_map_event/create_npc.

ParameterTypeDescription
name *stringMap name shown in the editor map tree
dryRunbooleanPreview only: return a diff of what would change without writing to disk.
heightintegerHeight in tiles (default 13)
parentIdintegerParent map id in the tree; 0 (default) = top level
tilesetIdintegerTileset id (default 1)
widthintegerWidth in tiles (default 17)

delete_map

Delete a map: remove its entry from the map tree (MapInfos.json) and delete its data/MapNNN.json file. The deleted map's direct children are reparented onto its parent (not deleted), so removing one node doesn't wipe a whole sub-tree. Does not touch System.json.

ParameterTypeDescription
mapId *integerThe ID of the map to delete
dryRunbooleanPreview only: return a diff of what would change without writing to disk.

update_map_tree

Edit the map tree (MapInfos.json) only — reparent, reorder, rename, or expand/collapse maps without touching their tiles or events. Takes a batch of per-map updates; every referenced map (and any non-zero parentId) must exist, and the resulting tree must stay acyclic.

ParameterTypeDescription
updates *arrayOne or more per-map tree edits to apply together
dryRunbooleanPreview only: return a diff of what would change without writing to disk.

get_map_events

Get all events from a specific map

ParameterTypeDescription
mapId *integerThe ID of the map

get_map_event

Get a specific event from a map

ParameterTypeDescription
eventId *integerThe ID of the event
mapId *integerThe ID of the map

update_map_event

Update a map event's properties. Refuses the write (nothing is saved) if the resulting event is structurally invalid — pass force: true to override.

ParameterTypeDescription
eventId *integerThe ID of the event
mapId *integerThe ID of the map
updates *objectObject containing event properties to update
dryRunbooleanPreview only: return a diff of what would change without writing to disk.
forcebooleanWrite even if validation finds structural problems (wrong parameter count, unterminated command list). Off by default: such a write is refused and nothing is written. Advisory warnings never block reg…
verbosebooleanEcho the full written record instead of the default summary. Off by default: the response reports identity, counts and command-list shape, which is what you would assert on, and omits the parameters/c…

create_map_event

Create a new event on a map. Each page is merged onto a blank "New Event" page (trigger 0 action-button, priority 0 below characters, no graphic, empty command list, standing move type), so you only supply the fields that differ — pass e.g. `{ image: { characterName: 'Actor1', characterIndex: 0 }, trigger: 3, list: [...] }` and the rest is filled in. Nested `image`/`conditions` deep-merge; an omitted `list` becomes a valid empty (code-0-terminated) list. Omit `pages` entirely for a bare one-page event. For the common "talking NPC" case prefer create_npc. An action-button page meant to fire f…

ParameterTypeDescription
mapId *integerThe ID of the map
name *stringEvent name
x *integerX tile position
y *integerY tile position
dryRunbooleanPreview only: return a diff of what would change without writing to disk.
forcebooleanWrite even if validation finds structural problems (wrong parameter count, unterminated command list). Off by default: such a write is refused and nothing is written. Advisory warnings never block reg…
notestringEvent note field
pagesarrayEvent pages; each is merged onto a blank page so you can pass only the differing fields. Omit for one blank page.

search_map_events

Search events on a map by name

ParameterTypeDescription
mapId *integerThe ID of the map
searchTerm *stringThe search term to find events

add_event_command

Add a command to an event page. Refuses the write (nothing is saved) if the resulting page is structurally invalid — e.g. the command has the wrong parameter count for its code. Pass force: true to override.

ParameterTypeDescription
command *objectThe event command to insert
eventId *integerThe ID of the event
mapId *integerThe ID of the map
pageIndex *integerZero-based page index
dryRunbooleanPreview only: return a diff of what would change without writing to disk.
forcebooleanWrite even if validation finds structural problems (wrong parameter count, unterminated command list). Off by default: such a write is refused and nothing is written. Advisory warnings never block reg…
positionintegerInsertion index; defaults to end of the list
verbosebooleanEcho the full written record instead of the default summary. Off by default: the response reports identity, counts and command-list shape, which is what you would assert on, and omits the parameters/c…

update_map

Update a map's top-level properties (name, display name, bgm, encounters, etc.). Does not repaint tiles. Cannot change width/height (that would desync the tile data array) — use resize_map for that. The echo omits the tile `data` array and the `events` map (neither is touched here) and reports dataTileCount/eventCount instead; pass verbose: true or use get_map for the full record.

ParameterTypeDescription
mapId *integerThe ID of the map
updates *objectPartial MapData properties to merge
dryRunbooleanPreview only: return a diff of what would change without writing to disk.
verbosebooleanEcho the full written record instead of the default summary. Off by default: the response reports identity, counts and command-list shape, which is what you would assert on, and omits the parameters/c…

resize_map

Resize a map to new width/height, safely repadding every z-layer of its tile data (existing tiles kept where the old and new grids overlap; new cells blank; shrinking crops). This is the ONLY safe way to change a map's dimensions — update_map refuses a width/height change because it would not resize the tile array. Warns about any event left outside the new bounds.

ParameterTypeDescription
height *integerNew height in tiles
mapId *integerThe ID of the map to resize
width *integerNew width in tiles
dryRunbooleanPreview only: return a diff of what would change without writing to disk.
verbosebooleanEcho the full written record instead of the default summary. Off by default: the response reports identity, counts and command-list shape, which is what you would assert on, and omits the parameters/c…

set_encounters

Set a map's random-encounter list (replaces it wholesale) and optionally its encounterStep (average steps between encounters). Each encounter is { troopId, weight?, regionSet? }: weight biases the random pick (default 5), regionSet restricts it to those map region ids (empty/omitted = anywhere). Every troopId is validated against Troops.json — a non-existent troop throws. Prefer this over update_map for encounters (it validates and hides the on-disk shape).

ParameterTypeDescription
encounters *arrayThe full encounter list to set (replaces any existing entries)
mapId *integerThe ID of the map
dryRunbooleanPreview only: return a diff of what would change without writing to disk.
encounterStepintegerAverage number of steps between encounters (unchanged if omitted)

get_map_dimensions

Get the width and height (in tiles) of a map

ParameterTypeDescription
mapId *integerThe ID of the map

set_map_tile

Set a single raw tile ID at (x, y) on a given z-layer (0-5). Note: tile IDs are raw engine integers; this is a low-level primitive without autotile/passability awareness.

ParameterTypeDescription
layer *integerZ-layer 0-5 (0-1 lower, 2-3 upper, 4 shadow, 5 region)
mapId *integerThe ID of the map
tileId *integerRaw tile ID
x *integerX tile position
y *integerY tile position
dryRunbooleanPreview only: return a diff of what would change without writing to disk.

delete_map_event

Delete an event from a map by ID

ParameterTypeDescription
eventId *integerThe ID of the event
mapId *integerThe ID of the map
dryRunbooleanPreview only: return a diff of what would change without writing to disk.

create_enemy

Create a new enemy in data/Enemies.json. Only `name` is required; omitted fields use the editor's new-enemy defaults (100 HP, one Attack action, no drops). Allocates the next unused enemy id and returns `{ enemy, warnings? }` (warn-by-default: a `battlerName` not found in img/enemies (img/sv_enemies for a side-view project) is flagged, never blocked). Throws if an `actions[].skillId` or a `dropItems[].dataId` (item/weapon/armor by `kind`) references a record that does not exist. NOTE: an enemy with no Hit Rate trait (xparam id 0: trait { code: 22, dataId: 0, value: 0.95 }) always misses physic…

ParameterTypeDescription
name *stringEnemy name shown in battle and the database
actionsarrayAction patterns { skillId, conditionType, conditionParam1, conditionParam2, rating }
battlerHueintegerBattler hue rotation 0-360
battlerNamestringBattler graphic filename (img/enemies; img/sv_enemies when System.optSideView)
dropItemsarrayDrop-item objects { kind, dataId, denominator }
dryRunbooleanPreview only: return a diff of what would change without writing to disk.
expintegerEXP granted when defeated
goldintegerGold granted when defeated
notestringNote field
paramsarray8 base params: [maxHP, maxMP, atk, def, mat, mdf, agi, luk]
traitsarrayTrait objects { code, dataId, value }

update_enemy

Update an enemy's properties (shallow merge into the existing record). Returns `{ enemy, warnings? }` — a `battlerName` not found in img/enemies (img/sv_enemies for a side-view project) is flagged warn-by-default.

ParameterTypeDescription
enemyId *integerThe ID of the enemy to update
updates *objectObject containing enemy properties to update
dryRunbooleanPreview only: return a diff of what would change without writing to disk.

search_enemies

Search enemies by name (case-insensitive)

ParameterTypeDescription
searchTerm *stringThe search term to find enemies

create_troop

Create a new troop (enemy battle group) in data/Troops.json. `name` is required; `members` defaults to empty and `pages` to one blank battle-event page. Every member.enemyId must reference an existing enemy. A structurally invalid battle-event page refuses the write (nothing is saved) — pass force: true to override.

ParameterTypeDescription
name *stringTroop name shown in the database
dryRunbooleanPreview only: return a diff of what would change without writing to disk.
forcebooleanWrite even if validation finds structural problems (wrong parameter count, unterminated command list). Off by default: such a write is refused and nothing is written. Advisory warnings never block reg…
membersarrayPlaced enemies; each references an existing enemyId
pagesarrayBattle-event pages { conditions, list, span }; defaults to one blank page
verbosebooleanEcho the full written record instead of the default summary. Off by default: the response reports identity, counts and command-list shape, which is what you would assert on, and omits the parameters/c…

update_troop

Update a troop's properties (shallow merge). If `members` is provided, each enemyId is validated to exist. A structurally invalid battle-event page refuses the write (nothing is saved) — pass force: true to override.

ParameterTypeDescription
troopId *integerThe ID of the troop to update
updates *objectObject containing troop properties to update (name, members, pages)
dryRunbooleanPreview only: return a diff of what would change without writing to disk.
forcebooleanWrite even if validation finds structural problems (wrong parameter count, unterminated command list). Off by default: such a write is refused and nothing is written. Advisory warnings never block reg…
verbosebooleanEcho the full written record instead of the default summary. Off by default: the response reports identity, counts and command-list shape, which is what you would assert on, and omits the parameters/c…

build_troop_page

Build a troop battle-event page { conditions, list, span } from a compact trigger — no hand-built 12-field conditions object. `when` keys (ANDed, at least one): turn [a, b] (turn a + b*X; b 0 = only turn a), enemyHpBelow [enemyIndex, pct] (0-based troop slot, NOT enemy id), actorHpBelow [actorId, pct], switch id, turnEnd true. `span`: battle (runs once per battle, default), turn (once per turn), moment (re-runs while the condition holds — guard it with a switch). Timing (turn-based battles): an enemy action pattern with conditionType 1 / [a, b] is chosen during turn N's input phase (troop…

ParameterTypeDescription
when *objectTrigger; every key given is ANDed, at least one required
commandsarrayThe page's event commands (e.g. from build_* tools); default empty
spanstringHow often the page may run (default battle)

add_troop_page

Append one battle-event page (e.g. the `page` from build_troop_page) to an existing troop without re-sending its other pages; `position` inserts it at that 0-based page index instead (the first page whose conditions hold runs, so order matters when triggers overlap). A structurally invalid page refuses the write (nothing is saved) — pass force: true to override; an HP condition on a troop slot past the troop's members, or a page with no condition enabled, is warned (never blocked). Returns { troop, pageIndex, warnings? }; fill it further with insert_event_commands target "troop_page".

ParameterTypeDescription
page *objectA troop battle-event page, e.g. the `page` from build_troop_page
troopId *integerThe troop to add the page to
dryRunbooleanPreview only: return a diff of what would change without writing to disk.
forcebooleanWrite even if validation finds structural problems (wrong parameter count, unterminated command list). Off by default: such a write is refused and nothing is written. Advisory warnings never block reg…
positioninteger0-based page index to insert at (default: append)
verbosebooleanEcho the full written record instead of the default summary. Off by default: the response reports identity, counts and command-list shape, which is what you would assert on, and omits the parameters/c…

search_troops

Search troops by name (case-insensitive)

ParameterTypeDescription
searchTerm *stringThe search term to find troops

create_class

Create a new character class in data/Classes.json. Only `name` is required; omitted fields use the editor's new-class defaults (EXP curve [30,20,30,30], no traits/learnings, a linear param curve to maxLevel). Allocates and returns the next unused class id. NOTE: a class with no Hit Rate trait (xparam id 0: trait { code: 22, dataId: 0, value: 0.95 }) makes its actors always miss physical actions — pass one in `traits` for a combat-ready class. Likewise every learned skill's stypeId needs an Add Skill Type trait ({ code: 41, dataId: stypeId, value: 1 }) or the skill-type command never appears…

ParameterTypeDescription
name *stringClass name shown in the database
dryRunbooleanPreview only: return a diff of what would change without writing to disk.
expParamsarrayEXP curve: [basis, extra, accelerationA, accelerationB]
learningsarrayLearned-skill entries { level, skillId, note }
maxLevelintegerHighest level the param curve covers (default 99); sizes the params matrix
notestringNote field
paramsarray8 param growth curves, each maxLevel+1 long: [maxHP,maxMP,atk,def,mat,mdf,agi,luk]
traitsarrayTrait objects { code, dataId, value }

update_class

Update a class's properties (shallow merge into the existing record). Use for name, expParams, traits, or to replace the whole learnings/params arrays; for targeted edits prefer add_class_learning / set_class_param_curve. Warns when a learned skill's stypeId has no Add Skill Type trait ({ code: 41 }).

ParameterTypeDescription
classId *integerThe ID of the class to update
updates *objectObject containing class properties to update
dryRunbooleanPreview only: return a diff of what would change without writing to disk.

add_class_learning

Add a "learn skill at level" entry to a class (replaces the hack of attaching skills to an actor via an Add-Skill trait). Validates the skillId exists and keeps the learnings sorted by level. Warns (never blocks) when the skill's stypeId is not covered by an Add Skill Type trait ({ code: 41, dataId: stypeId, value: 1 }) on the class — without it the skill-type command never appears and actors cannot use the skill.

ParameterTypeDescription
classId *integerThe ID of the class to add the learning to
level *integerLevel at which the skill is learned
skillId *integerThe skill learned (must exist in data/Skills.json)
dryRunbooleanPreview only: return a diff of what would change without writing to disk.
notestringOptional note for the learning entry

set_class_param_curve

Replace one of a class's 8 parameter growth curves. paramId is 0-7 ([maxHP,maxMP,atk,def,mat,mdf,agi,luk]); values must match the existing curve length (same max level).

ParameterTypeDescription
classId *integerThe ID of the class to edit
paramId *integerWhich param: 0 maxHP,1 maxMP,2 atk,3 def,4 mat,5 mdf,6 agi,7 luk
values *arrayNew curve, indexed by level; must match the existing curve length
dryRunbooleanPreview only: return a diff of what would change without writing to disk.

create_state

Create a new state (status condition like Poison/Sleep) in data/States.json. Only `name` is required; omitted fields use the editor's new-state defaults (no restriction, priority 50, no auto-removal, 1-turn duration). Allocates and returns the next unused state id.

ParameterTypeDescription
name *stringState name shown in the database and battle messages
autoRemovalTimingintegerAuto-removal timing: 0 none, 1 at action end, 2 at turn end
chanceByDamageintegerChance (%) of removal per damage instance when removeByDamage
dryRunbooleanPreview only: return a diff of what would change without writing to disk.
iconIndexintegerIcon shown on the battler/status (0 = none)
maxTurnsintegerMaximum duration in turns when auto-removed
message1stringMessage when an actor gains the state
message2stringMessage when an enemy gains the state
message3stringMessage when the state persists
message4stringMessage when the state is removed
messageTypeintegerEngine's message routing form
minTurnsintegerMinimum duration in turns when auto-removed
motionintegerSV-actor motion (0 normal, 2 sleep, 3 dead, …)
notestringNote field
overlayintegerOverlay animation index (0 = none)
priorityintegerIcon-slot display priority 0-100 (default 50)
releaseByDamagebooleanWhether damage can release the state
removeAtBattleEndbooleanRemove automatically when the battle ends
removeByDamagebooleanRemove when the battler takes damage
removeByRestrictionbooleanRemove when the battler's restriction changes
removeByWalkingbooleanRemove after walking a number of steps
restrictionintegerBehavior restriction: 0 none, 1 attack enemy, 2 attack anyone, 3 attack ally, 4 cannot move
stepsToRemoveintegerSteps to walk off the state when removeByWalking
traitsarrayTrait objects { code, dataId, value }

update_state

Update a state's properties (shallow merge into the existing record)

ParameterTypeDescription
stateId *integerThe ID of the state to update
updates *objectObject containing state properties to update
dryRunbooleanPreview only: return a diff of what would change without writing to disk.

create_common_event

Create a new common event (reusable event-command list) in data/CommonEvents.json. Only `name` is required; omitted fields use the editor's new-slot defaults (empty command list, trigger 0 = call-only, switchId 1). Allocates and returns the next unused id. A structurally invalid command list refuses the write (nothing is saved) — pass force: true to override.

ParameterTypeDescription
name *stringCommon event name shown in the database
dryRunbooleanPreview only: return a diff of what would change without writing to disk.
forcebooleanWrite even if validation finds structural problems (wrong parameter count, unterminated command list). Off by default: such a write is refused and nothing is written. Advisory warnings never block reg…
listarrayEvent-command list { code, indent, parameters }; must end with code 0
switchIdintegerSwitch that gates an Autorun/Parallel trigger (ignored when trigger is 0)
triggerintegerHow it runs on its own: 0 None (call-only), 1 Autorun, 2 Parallel
verbosebooleanEcho the full written record instead of the default summary. Off by default: the response reports identity, counts and command-list shape, which is what you would assert on, and omits the parameters/c…

update_common_event

Update a common event's properties (shallow merge into the existing record). Use for name, trigger, switchId, or to replace the whole command list. A structurally invalid command list refuses the write (nothing is saved) — pass force: true to override.

ParameterTypeDescription
commonEventId *integerThe ID of the common event to update
updates *objectObject containing common event properties to update (name, trigger, switchId, list)
dryRunbooleanPreview only: return a diff of what would change without writing to disk.
forcebooleanWrite even if validation finds structural problems (wrong parameter count, unterminated command list). Off by default: such a write is refused and nothing is written. Advisory warnings never block reg…
verbosebooleanEcho the full written record instead of the default summary. Off by default: the response reports identity, counts and command-list shape, which is what you would assert on, and omits the parameters/c…

call_common_event

Build a "Common Event" event command (code 117) that calls the given common event, for insertion into an event page via insert_event_commands. Validates the common event exists. Read-only: returns `{ command }` (matching the build_* tools, so it composes into a thenBranch/commands array); writes nothing.

ParameterTypeDescription
commonEventId *integerThe ID of the common event to call (must exist)
indentintegerIndentation level in the target list (default 0)

create_move_route

Build a movement route from a named pattern (patrol/approach/flee/wander/custom) instead of raw move-command codes. Read-only: returns { moveRoute, warnings? }. Use the route as an event page’s autonomous moveRoute (update_map_event with moveType 3), or feed it to set_movement_route for a forced route in an event command list.

ParameterTypeDescription
pattern *stringpatrol (walk a direction and back), approach (toward player), flee (away from player), wander (random), or custom (your own move commands)
commandsarraycustom only: raw move commands { code, parameters }
directionstringpatrol only: primary direction, walked out and back (default right)
repeatbooleanLoop the route (patterns loop by default)
skippablebooleanSkip a step when movement is blocked
stepsintegerpatrol only: steps per leg (default 3)
waitbooleanWait for the route to finish before continuing

set_movement_route

Insert a forced "Set Movement Route" (event command 205, plus the 505 continuation rows the editor expects) into an event page’s command list, moving a character as part of that page. characterId: -1 player, 0 this event, N event id. Pass a moveRoute from create_move_route. A structurally invalid route or page refuses the write (nothing is saved) — pass force: true to override.

ParameterTypeDescription
characterId *integerTarget character: -1 player, 0 this event, N event id on the map
eventId *integerThe ID of the event
mapId *integerThe ID of the map
moveRoute *objectThe move route to force (e.g. from create_move_route)
pageIndex *integerZero-based page index
dryRunbooleanPreview only: return a diff of what would change without writing to disk.
forcebooleanWrite even if validation finds structural problems (wrong parameter count, unterminated command list). Off by default: such a write is refused and nothing is written. Advisory warnings never block reg…
indentintegerIndentation level in the list (default 0)
positionintegerInsertion index; defaults to the end of the list

build_show_text

Build a Show Text event-command sequence (101 setup + one 401 line per text line) for insertion via insert_event_commands. Supports face image (from list_assets("faces")), window background/position, and the MZ name-box speaker. MZ does NOT word-wrap: keep each line under ~55 chars (~38 with a face) or it is cut off at the window edge (warned, never blocked) — or pass `wrap: true` to word-wrap automatically to that same width (escape codes like \C[n] do not count) and split into as many 4-line message boxes as needed. Read-only: returns { commands, warnings? }, writes nothing.

ParameterTypeDescription
lines *arrayMessage lines (one entry per visual line)
backgroundstringWindow background (default window)
faceIndexintegerFace index 0–7 in the sheet (default 0)
faceNamestringFace image basename ("" = none, default)
indentintegerIndentation level (default 0)
positionstringWindow position (default bottom)
speakerNamestringMZ name-box speaker name (default "")
wrapAuto word-wrap to the message-window width (the same width the line-length warning uses) and split into 4-line boxes. true/"soft" reflows all lines as one paragraph; "hard" keeps each entry (and \n) a…

build_show_choices

Build a Show Choices block (102 opener + a 402 branch per choice + optional 403 When-Cancel branch + 404 closer, each branch terminated like the editor) for insertion via insert_event_commands. Pass per-choice `branches` (each an EventCommand[] — e.g. from build_show_text) to fill the branch bodies. Read-only: returns { commands }.

ParameterTypeDescription
choices *arrayThe choice labels shown to the player
backgroundstringChoice window background (default window)
branchesarrayCommands per choice (same order as choices); omitted/short = empty branches
cancelBrancharrayCommands for a "When Cancel" branch (adds a 403 block; cancel routes here)
cancelTypeintegerWithout a cancelBranch: 0-based choice index the Cancel button maps to, or -1 Disallow (default -1)
defaultTypeinteger0-based default (highlighted) choice, or -1 none (default 0)
indentintegerIndentation level of the block (default 0)
positionstringChoice window position (default right)

build_conditional_branch

Build a Conditional Branch block (111 condition + then-branch + optional 411 Else + 412 closer, each branch terminated like the editor) for insertion via insert_event_commands. Condition types: switch, self_switch, variable, actor_in_party, gold, item. Provide thenBranch/elseBranch as EventCommand[] (e.g. from other builders). Read-only: returns { commands }.

ParameterTypeDescription
condition *objectConditional branch condition
elseBrancharrayCommands for the Else branch; presence (even empty) adds the 411 Else block
indentintegerIndentation level of the block (default 0)
thenBrancharrayCommands to run when the condition is true (default empty)

build_flow_command

Build a single flow-control event command for insertion via insert_event_commands: wait (230, N frames), exit_event (115), label (118, a named jump target), or jump_to_label (119). Read-only: returns { command }.

ParameterTypeDescription
kind *stringWhich flow command to build
framesintegerwait: number of frames (60 = 1 second)
indentintegerIndentation level (default 0)
namestringlabel/jump_to_label: the label name

build_control_switch

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 }.

ParameterTypeDescription
scope *string"switch" (global, by id/range) or "self_switch" (this event, A–D)
endIdintegerswitch: inclusive range end (default = switchId, a single switch)
indentintegerIndentation level (default 0)
namestringself_switch: which self switch
switchIdintegerswitch: the switch id (range start)
valuestringSet on (default) or off

build_control_variable

Build a Control Variables (122) event command for insertion via insert_event_commands. Applies operation (set/add/sub/mul/div/mod) to a variable (or the inclusive variableId..endId range) using an operand: constant, another variable, a random range, or game_data (item/actor/party/… readouts). Read-only: returns { command }.

ParameterTypeDescription
operand *objectThe right-hand operand of the Control Variables command
variableId *integerThe target variable id (range start)
endIdintegerInclusive range end (default = variableId, a single variable)
indentintegerIndentation level (default 0)
operationstringArithmetic applied to the target (default set)

build_change_gold

Build a Change Gold (125) event command for insertion via insert_event_commands — increase or decrease party gold by a constant or variable amount. Read-only: returns { command }.

ParameterTypeDescription
operand *objectThe amount to gain/lose (constant or variable)
operation *stringGain or lose gold
indentintegerIndentation level (default 0)

build_change_items

Build a Change Items (126), Change Weapons (127), or Change Armors (128) event command for insertion via insert_event_commands — gain/lose an item/weapon/armor by a constant or variable amount. includeEquip (weapon/armor only) also counts equipped copies when removing. Read-only: returns { command }.

ParameterTypeDescription
id *integerThe item/weapon/armor id
kind *stringWhich inventory to change
operand *objectThe amount to gain/lose (constant or variable)
operation *stringGain or lose
includeEquipbooleanweapon/armor: also count equipped copies (default false)
indentintegerIndentation level (default 0)

build_change_party_member

Build a Change Party Member (129) event command for insertion via insert_event_commands — add or remove an actor from the party. initialize (add only) resets the actor to their initial state. Read-only: returns { command }.

ParameterTypeDescription
actorId *integerThe actor id
operation *stringAdd to or remove from the party
indentintegerIndentation level (default 0)
initializebooleanadd only: reset the actor to their initial state (default false)

build_transfer_player

Build a Transfer Player (201) event command for insertion via insert_event_commands — move the party to (x, y) on a map. With designation "variable", mapId/x/y are variable ids resolved at runtime. Read-only: returns { command }.

ParameterTypeDescription
mapId *integerDestination map id (or a variable id if designation=variable)
x *integerDestination tile x (or a variable id)
y *integerDestination tile y (or a variable id)
designationstringdirect: mapId/x/y are literal; variable: they are variable ids (default direct)
directionstringFacing after transfer (default retain)
fadestringFade style (default black)
indentintegerIndentation level (default 0)

build_play_audio

Build a Play BGM/BGS/ME/SE (241/245/249/250) event command for insertion via insert_event_commands. Warns (never blocks) when `name` is not a known audio asset for that channel (checked against list_assets). Returns { command, warnings? }.

ParameterTypeDescription
kind *stringWhich audio channel to play on
name *stringAudio basename (from list_assets, extension stripped)
indentintegerIndentation level (default 0)
pannumberPan -100–100 (default 0)
pitchnumberPitch 50–150 (default 100)
volumenumberVolume 0–100 (default 90)

build_screen_effect

Build a screen transition/effect event command for insertion via insert_event_commands: fadeout (221) / fadein (222) — no params; tint (223) & flash (224) — an [r,g,b,a] color over `duration` frames; shake (225) — power/speed over `duration`. `wait` holds the event until it finishes. Read-only: returns { command }.

ParameterTypeDescription
kind *stringWhich screen effect to build
colorarraytint: [red,green,blue,gray] (−255…255); flash: [red,green,blue,intensity] (0…255)
durationnumbertint/flash/shake: frames (default 60)
indentintegerIndentation level (default 0)
powernumbershake: strength 1–9 (default 5)
speednumbershake: speed 1–9 (default 5)
waitbooleantint/flash/shake: hold the event until it finishes (default true)

build_picture

Build a Show Picture (231) or Erase Picture (235) event command for insertion via insert_event_commands. show: display `name` in slot `pictureId` with origin/position/scale/opacity/blend; erase: clear the slot. Read-only: returns { command }.

ParameterTypeDescription
kind *stringShow a picture or erase a slot
pictureId *integerPicture slot 1–100
blendstringshow: blend mode (default normal)
indentintegerIndentation level (default 0)
namestringshow: picture basename (from list_assets("pictures"))
opacitynumbershow: opacity 0–255 (default 255)
originstringshow: anchor point (default upper_left)
scaleXnumbershow: horizontal scale % (default 100)
scaleYnumbershow: vertical scale % (default 100)
xnumbershow: screen x in pixels (default 0)
ynumbershow: screen y in pixels (default 0)

build_character_effect

Build a Show Animation (212) or Show Balloon Icon (213) event command for insertion via insert_event_commands, played over a character (characterId: -1 player, 0 this event, N event id). Read-only: returns { command }.

ParameterTypeDescription
characterId *integerTarget character: -1 player, 0 this event, N event id on the current map
id *integeranimation: the animation id; balloon: the balloon id (1 exclamation, 2 question, …)
kind *stringPlay an animation or a balloon icon
indentintegerIndentation level (default 0)
waitbooleanHold the event until it finishes (default false)

build_battle_processing

Build a Battle Processing (301) event command for insertion via insert_event_commands — start a battle against a troop (direct id, a variable holding the id, or "random" like the map encounters). canEscape/canLose gate the battle result branches. Read-only: returns { command }.

ParameterTypeDescription
canEscapebooleanAllow the party to escape (default false)
canLosebooleanContinue the event if the party loses (default false)
indentintegerIndentation level (default 0)
troopstringHow the troop is chosen (default direct)
troopIdintegerdirect: the troop id; variable: the variable id holding it

build_shop_processing

Build a Shop Processing (302 + one 605 row per extra good) event-command sequence for insertion via insert_event_commands. Each good sells an item/weapon/armor at its database price, or a specified `price`. purchaseOnly hides the sell tab. Read-only: returns { commands }.

ParameterTypeDescription
goods *arrayThe goods offered (at least one)
indentintegerIndentation level (default 0)
purchaseOnlybooleanHide the sell tab (default false)

build_name_input

Build a Name Input Processing (303) event command for insertion via insert_event_commands — open the name-entry screen for an actor. Read-only: returns { command }.

ParameterTypeDescription
actorId *integerThe actor whose name is entered
indentintegerIndentation level (default 0)
maxLengthintegerMax name length (default 8)

build_change_actor

Build an actor stat-change scene command for insertion via insert_event_commands: hp (311), mp (312), state (313), recover_all (314), exp (315), or level (316). Targets a fixed actor (0 = whole party) or a variable. hp/mp/exp/level take an increase/decrease `operand` (constant or variable); state takes add/remove + `stateId`; recover_all takes nothing extra. Read-only: returns { command }.

ParameterTypeDescription
kind *stringWhich actor change to build
target *objectWhich actor(s) the change applies to
allowKnockoutbooleanhp: allow the change to reduce HP to 0/death (default false)
indentintegerIndentation level (default 0)
operandobjecthp/mp/exp/level: the amount (constant/variable)
operationstringhp/mp/exp/level: gain or lose (default increase)
showLevelUpbooleanexp/level: show the level-up message (default false)
stateIdintegerstate: the state id
stateOperationstringstate: add or remove the state

build_battle_command

Build an in-battle event command for a troop battle-event page (see build_troop_page / add_troop_page / insert_event_commands target "troop_page"): enemy_appear (335 — reveal a troop member added with hidden: true, i.e. a summon/reinforcement), enemy_state (333 — add/remove a state on one troop member or the whole troop, e.g. a telegraph "Gathering power" state), or abort_battle (340 — end the battle with no victory/defeat; the calling Battle Processing takes its Escape branch). `enemyIndex` is the 0-based troop slot (members[] order), NOT an enemy id; enemy_state also accepts -1 = entir…

ParameterTypeDescription
kind *stringWhich battle command to build
enemyIndexintegerenemy_appear/enemy_state: 0-based troop slot (members[] order); enemy_state also allows -1 = entire troop
indentintegerIndentation level (default 0)
stateIdintegerenemy_state: the state id
stateOperationstringenemy_state: add or remove the state (default add)

insert_event_commands

Insert a pre-built sequence of event commands (from the build_* builders) into any of the three command lists an MZ project has — the mutating companion to the read-only builders. Splices before the list’s end marker (or at `position`). target "map_event" (the default) needs mapId + eventId + pageIndex; "common_event" needs commonEventId; "troop_page" needs troopId + pageIndex. The resulting list is validated before writing: a structural problem (wrong parameter count for a command code, a list left unterminated) refuses the write and saves nothing — pass force: true to override. Advisor…

ParameterTypeDescription
commands *arrayThe event commands to insert (e.g. the `commands` from a build_* tool)
commonEventIdintegertarget "common_event": the common event id
dryRunbooleanPreview only: return a diff of what would change without writing to disk.
eventIdintegertarget "map_event": the event id
forcebooleanWrite even if validation finds structural problems (wrong parameter count, unterminated command list). Off by default: such a write is refused and nothing is written. Advisory warnings never block reg…
mapIdintegertarget "map_event": the map id
pageIndexintegertarget "map_event"/"troop_page": zero-based page index
positionintegerInsertion index; defaults to the end of the list
targetstringWhich command list to insert into (default map_event)
troopIdintegertarget "troop_page": the troop id
verbosebooleanEcho the full written record instead of the default summary. Off by default: the response reports identity, counts and command-list shape, which is what you would assert on, and omits the parameters/c…

set_event_page

Update an existing event page's graphic and behavior in one call, without rebuilding the whole page or touching its command list: sprite (characterName/characterIndex/direction/pattern or a tileId), trigger, priority, movement (type/speed/frequency/route), and the through/walkAnime/stepAnime/directionFix flags. Graphic fields merge onto the current image; warns (never blocks) on an unknown characterName. Refuses the write if the change would leave the event unreachable (an action-button page with priority `below` on an impassable tile) — pass force: true to override.

ParameterTypeDescription
eventId *integerThe ID of the event
mapId *integerThe ID of the map
pageIndex *integerZero-based page index
characterIndexintegerSprite index 0–7 in the sheet
characterNamestringSprite sheet basename (from list_assets("characters")); "" = no sprite
directionstringFacing direction of the sprite
directionFixbooleanLock the facing direction
dryRunbooleanPreview only: return a diff of what would change without writing to disk.
forcebooleanWrite even if validation finds structural problems (wrong parameter count, unterminated command list). Off by default: such a write is refused and nothing is written. Advisory warnings never block reg…
indentinteger(unused; page-level tool)
moveFrequencyintegerMovement frequency 1–5 (3 = normal)
moveRouteobjectAutonomous move route (from create_move_route); pairs with moveType "custom"
moveSpeedintegerMovement speed 1–6 (4 = normal)
moveTypestringAutonomous movement (custom uses moveRoute)
patternintegerSprite animation frame 0–2 (1 = idle)
prioritystringStacking vs. the player: below/same/above characters (same = solid)
stepAnimebooleanAnimate in place while stopped
throughbooleanLet the player/others pass through the event
tileIdintegerUse a tile as the graphic instead of a sprite (0 = none)
triggerstringWhat starts the page
verbosebooleanEcho the full written record instead of the default summary. Off by default: the response reports identity, counts and command-list shape, which is what you would assert on, and omits the parameters/c…
walkAnimebooleanAnimate the walk cycle while moving

create_npc

Create a complete, placed NPC event on a map in one call — a graphic + trigger + a talk list. Provide `text` (built into a Show Text sequence, with optional face/speaker; `wrap: true` word-wraps paragraphs into 4-line message boxes) or an explicit `commands` array (commands wins if both given). Defaults to a solid, action-button NPC facing down. Warns (never blocks) on an unknown characterName, and on NO graphic at all (an NPC with no characterName is invisible in-game — use create_map_event for an intentionally-invisible trigger). The one-shot "make a talking NPC that says X" primitive.

ParameterTypeDescription
mapId *integerThe ID of the map to place the NPC on
name *stringEvent name (editor label)
x *integerX tile position
y *integerY tile position
characterIndexintegerSprite index 0–7 in the sheet
characterNamestringSprite sheet basename (from list_assets("characters"))
commandsarrayExplicit command list (from the build_* tools); overrides `text` if given
directionstringFacing direction (default down)
dryRunbooleanPreview only: return a diff of what would change without writing to disk.
faceIndexintegertext: face index 0–7
faceNamestringtext: face image basename (from list_assets("faces"))
forcebooleanWrite even if validation finds structural problems (wrong parameter count, unterminated command list). Off by default: such a write is refused and nothing is written. Advisory warnings never block reg…
patternintegerSprite frame 0–2 (default 1 = idle when a sprite is set)
prioritystringStacking vs. the player (default same = solid)
speakerNamestringtext: MZ name-box speaker name
textarrayDialogue lines shown when the NPC is triggered (built as Show Text)
throughbooleanLet the player pass through (default false)
triggerstringWhat starts the event (default action_button)
wrapAuto word-wrap to the message-window width (the same width the line-length warning uses) and split into 4-line boxes. true/"soft" reflows all lines as one paragraph; "hard" keeps each entry (and \n) a…

create_chest

Create a complete, placed treasure chest on a map in one call — the two-page self-switch idiom done correctly, so the chest can never be looted twice. Page 1 (closed) is an action-button, priority-`same` event that optionally shows `text`, gives the contents, then flips its self switch; page 2 (opened) is gated on that self switch, shows the opened graphic and does nothing. `kind` picks the payout: item/weapon/armor (needs `id`) or gold. On the RTP `!Chest` sheet the open/closed states are the *direction* rows of one character block (down = closed, up = open), which is what closedDirection/o…

ParameterTypeDescription
kind *stringWhat the chest gives; item/weapon/armor require `id`
mapId *integerThe ID of the map to place the chest on
x *integerX tile position
y *integerY tile position
amountintegerHow many (or how much gold) to give; default 1
characterIndexintegerWhich chest in the sheet (0-7); default 0
characterNamestringChest sprite basename from list_assets("characters"), e.g. "!Chest"
closedDirectionstringDirection row showing the CLOSED chest; default "down"
dryRunbooleanPreview only: return a diff of what would change without writing to disk.
forcebooleanWrite even if validation finds structural problems (wrong parameter count, unterminated command list). Off by default: such a write is refused and nothing is written. Advisory warnings never block reg…
idintegerThe item/weapon/armor ID to give (omit for kind "gold")
namestringEvent name (editor label); default "Chest"
openedDirectionstringDirection row showing the OPENED chest; default "up"
selfSwitchstringSelf switch channel marking the chest looted; default "A"
textarrayOptional message shown on opening, e.g. ["Found a Potion!"]

create_transfer

Create a complete, placed map-transfer event in one call, using whichever of the two working idioms you pick. `idiom: "action_button"` (default) makes a priority-`same` event the player faces and presses — the right shape for a solid landmark (building, dungeon mouth, door); `idiom: "player_touch"` makes an invisible priority-`below` doormat the player walks onto — for interior exits and map-edge gaps. `direction` is the facing the player lands with, `fade` the screen transition. Throws if the destination map does not exist; warns if the destination tile is outside that map, if the charact…

ParameterTypeDescription
mapId *integerThe ID of the map the trigger is placed on
targetMapId *integerThe ID of the destination map
targetX *integerX tile the player lands on
targetY *integerY tile the player lands on
x *integerX tile position of the trigger
y *integerY tile position of the trigger
characterIndexintegerSprite index 0-7 in the sheet
characterNamestringOptional sprite basename (a doormat is normally left invisible)
directionstringFacing after the transfer; default "retain"
dryRunbooleanPreview only: return a diff of what would change without writing to disk.
fadestringScreen fade during the transfer; default "black"
forcebooleanWrite even if validation finds structural problems (wrong parameter count, unterminated command list). Off by default: such a write is refused and nothing is written. Advisory warnings never block reg…
idiomstringaction_button = face a solid landmark and press (priority same, default); player_touch = walk onto a doormat (priority below)
namestringEvent name (editor label); default "Transfer"

list_plugin_commands

List every plugin command create_plugin_command can validate (plugin filename → command key → args): the plugins this project actually ships, scanned from their js/plugins/*.js annotations, merged over a small built-in allowlist. Pass pluginName to narrow to one plugin. Read-only. Use scan_plugins for the richer per-project view (arg types/defaults, enabled state); an unlisted plugin command can still be built, it just isn’t validated.

ParameterTypeDescription
pluginNamestringOptional: restrict to one plugin (its filename without .js)

create_plugin_command

Build an RPG Maker MZ plugin command (event command code 357) for insertion into an event page via add_event_command. Validates against the plugins this project actually ships (scanned from their js/plugins/*.js @command/@arg annotations) merged over a small built-in allowlist — warn-by-default: an unknown plugin/command, a stray arg, or a plugin that is installed but disabled in js/plugins.js produces a warning but never blocks. Args are normalized to the editor’s string-valued shape. Read-only: returns { command, warnings? }, writes nothing.

ParameterTypeDescription
commandName *stringThe command key the plugin registered (event command parameters[1])
pluginName *stringPlugin filename without .js (event command parameters[0])
argsobjectCommand arguments as { name: value }; values are stored as strings on disk
indentintegerIndentation level in the target list (default 0)
labelstringEditor display label (parameters[2]); defaults to the command key

describe_tile

Decode a raw RPG Maker MZ tile id into its tileset sheet (A1–A5, B–E), and for autotiles its kind + shape slot (0–47) and autotile geometry (floor/wall/waterfall). Read-only inspection helper — raw tile ids are opaque integers, this makes one legible. Returns { tileId, empty, sheet, sheetIndex, autotile, kind?, shape?, autotileType? }. Pass `tilesetId` to also inspect the sheet PNG and report `transparent` (true = the tile is see-through and needs an opaque base tile on a lower layer; painting it on layer 0 alone shows the map void) + `transparentPercent`.

ParameterTypeDescription
tileId *integerThe raw tile id to decode
tilesetIdintegerTileset id — when given, also report the tile transparency (needs-a-base) flag

get_tile_catalog

Get the semantic tile catalog for a tileset: the named tiles (e.g. 'Grassland A', 'Forest', 'Sea') in each of its image sheets, each with its representative tile id and a `source` ('builtin' = RPG Maker's own labels; 'sidecar' = authoritative names from an img/tilesets/<Sheet>.txt file shipped next to a non-default sheet, as DLC packs do; 'project' = a data/tilecatalog/ entry — a vision-bootstrap draft, or a human-verified `manual` one, which outranks a sidecar name). Project (custom-sheet) entries also carry the skill's `description`, `confidence` ('high'/'medium'/'low'), and `manual` (true…

ParameterTypeDescription
tilesetId *integerTileset id (from Tilesets.json / the map)
sheetstringRestrict to one sheet by filename ('World_A2') or role ('A2'). Omit to get a per-sheet summary (counts only) instead of every entry.

find_tile

Find tiles in a tileset by a case-insensitive SUBSTRING match on their catalog name — a quick bridge from a name fragment like 'grass' or 'forest' to a paintable tile id. This is a literal substring match, NOT synonym/semantic search: 'water' matches 'Endless Waterfall' but not 'Sea' or 'Pond' (their names lack the substring). To browse the actual tile names first, use get_tile_catalog with a `sheet` filter, then search a fragment you see. Set `searchDescriptions: true` to also match the free-text description a project catalog carries (custom sheets named by the tileset-catalog skill — the…

ParameterTypeDescription
query *stringSubstring to match, e.g. 'grass' or 'forest' (literal substring, no synonyms)
tilesetId *integerTileset id (from Tilesets.json / the map)
searchDescriptionsbooleanAlso match project-catalog tile descriptions, not just names (default false — names only)

paint_tiles

Paint specific tiles onto a map, with automatic autotiling. Each cell is set to its tile id; if that id is an autotile (A1-A4, e.g. a catalog 'kind' base from find_tile), its shape and its neighbours' shapes are recomputed from same-kind adjacency so borders/corners line up. Flat tiles are painted as-is. Defaults to the lower ground layer (0). Higher-level than set_map_tile, which is a single raw tile with no autotiling.

ParameterTypeDescription
mapId *integerThe ID of the map
tiles *arrayCells to paint
dryRunbooleanPreview only: return a diff of what would change without writing to disk.
layerintegerZ-layer 0-5 (default 0 = lower ground; 0-3 tiles, 4 shadow, 5 region id)

fill_area

Fill a rectangular area of a map with one tile id, with automatic autotiling — a filled autotile region borders itself correctly (and re-borders any same-kind tiles it touches). Flat tiles fill uniformly. Defaults to the lower ground layer (0). For region ids, fill layer 5 with the region number as tileId.

ParameterTypeDescription
height *integerRectangle height in tiles
mapId *integerThe ID of the map
tileId *integerTile id to fill with (autotile base or raw)
width *integerRectangle width in tiles
x *integerLeft tile position of the rectangle
y *integerTop tile position of the rectangle
dryRunbooleanPreview only: return a diff of what would change without writing to disk.
layerintegerZ-layer 0-5 (default 0 = lower ground; 5 = region id)

paint_blueprint

Paint a whole map area from an ASCII blueprint in ONE call and one write. `rows` are equal-length strings (one glyph per cell); `legend` maps each glyph to what that cell holds: `[[layer, tile], ...]` pairs (multi-layer cells, e.g. ground on 0 + fence on 1); a bare string = a catalog tile name on layer 0; `{ wall: { top, side?, faceHeight?, layer? }, tiles?: [...] }` = an A4 wall (or A3 roof) — every cell gets the wall-top kind and the bottom `faceHeight` (default 1) cell(s) of each vertical run get the wall-side kind (derived as top + 8 kinds = +384 ids unless `side` is given; a run continu…

ParameterTypeDescription
legend *objectGlyph → cell contents (see the tool description for the value forms)
mapId *integerThe ID of the map
rows *arrayBlueprint rows, top to bottom; every row the same length, one glyph per cell
clearUpperLayersbooleanZero the tile layers above each cell's lowest specified layer that it does not specify (default true)
dryRunbooleanPreview only: return a diff of what would change without writing to disk.
originarray[x, y] map position of the blueprint's top-left cell (default [0, 0])

object_tiles

Expand a top-left flat tile id + a width×height size into the grid of tile ids that object occupies on the sheet — feed the returned `tiles` straight into place_object. This handles the flat sheets' two-half-column layout, where the tile below id N is NOT N+16 (indices 0–127 are the left half of the sheet, 128–255 the right), which is otherwise painful to compute by hand. Get the top-left id from find_tile/get_tile_catalog. Read-only. Throws if topLeftId isn't a flat id or the rectangle runs off the 16×16 sheet; warns if the tileset lacks that sheet.

ParameterTypeDescription
height *integerObject height in tiles
tilesetId *integerThe tileset id the object belongs to
topLeftId *integerRaw flat tile id of the object's top-left cell (from find_tile/get_tile_catalog)
width *integerObject width in tiles

place_object

Place a multi-tile B/C object (a house, tree, fountain, …) on a map and report its passability. `tiles` is the object's block of flat tile ids as rows (top to bottom), each row left to right; a 0 leaves that cell untouched so L-shaped/irregular objects work. Stamped onto the upper tile layer (2) by default so it draws over the ground. Unlike paint_tiles this does NOT autotile (objects are flat sheet tiles) — instead it uses the tileset flags to warn when a footprint cell sits on impassable terrain or overwrites an existing tile, and returns the resulting per-cell passability plus the `coll…

ParameterTypeDescription
mapId *integerThe ID of the map
tiles *arrayThe object as a rectangular grid of tile ids: rows top→bottom, each row left→right. 0 = a transparent cell (left untouched).
x *integerLeft (top-left) tile x of where the object is placed
y *integerTop (top-left) tile y of where the object is placed
dryRunbooleanPreview only: return a diff of what would change without writing to disk.
layerintegerZ-layer 0-3 to stamp onto (default 2 = upper tile layer, drawn over the ground)

get_tilesets

List every tileset in the project with its id, name, mode (0 world / 1 area), and the image sheets it uses (labelled A1–A4, A5, B–E; empty slots omitted). Use this to discover valid tilesetId values (needed by find_tile, get_tile_catalog, paint_tiles, fill_area, place_object, get_tile_flags, set_tile_flags, check_passability) and to see which sheets each tileset is built from. For a plain id→name list, list_names(type:"tilesets") is even cheaper. Read-only.

get_tile_flags

Decode a tileset's flag word for a single tile id into a legible view: 4-direction passability (down/left/right/up — true = walkable that way), the [*] 'star' overlay bit, ladder/bush/counter/damage-floor flags, and terrain tag (0–7). Read-only inspection of data/Tilesets.json flags[]. Note passability here is for the tile in isolation; a real cell's passability layers its stacked tiles — use check_passability for that. Returns { tilesetId, tileId, tile, flags }.

ParameterTypeDescription
tileId *integerThe raw tile id whose flags to decode
tilesetId *integerTileset id (from Tilesets.json / the map)

check_passability

Check whether a map cell can be walked onto, reproducing the engine's layered passage rule: the stacked tiles at (x, y) are examined upper-layer first, and the first non-[*] tile decides each direction. Reads the map's tileset flags. Returns per-direction passability (down/left/right/up — true = a character can walk off the cell that way), the cell's terrain tag, the stacked tile ids, and — when `direction` is given — a single `passable` boolean for that direction. Read-only.

ParameterTypeDescription
mapId *integerThe map id to inspect
x *integerTile x coordinate
y *integerTile y coordinate
directionstringOptional: also report a single passable boolean for this direction

set_tile_flags

Edit a tile's passability/terrain/behaviour flags in a tileset's flags[] array (the write side of get_tile_flags). Only the fields you pass change — everything else on the tile is preserved (a non-destructive merge onto the current flag word). `passage` is walkability (down/left/right/up, true = a character can walk off that way). Also settable: star ([*] overlay), ladder, bush, counter, damage (damage floor), and terrainTag (0–7). For an autotile id (A1–A4) the change is applied to all 48 shape slots of its kind by default (set applyToAutotileKind:false to touch only the exact id) so pa…

ParameterTypeDescription
tileId *integerThe raw tile id whose flags to edit
tilesetId *integerTileset id (from Tilesets.json / the map)
applyToAutotileKindbooleanWhen the tile is an autotile (A1–A4), apply the change to all 48 shape slots of its kind (default true). Ignored for flat tiles.
bushboolean
counterboolean
damagebooleanDamage floor (standing on it hurts).
dryRunbooleanPreview only: return a diff of what would change without writing to disk.
ladderboolean
passageobjectWalkability per direction (true = walkable). Only the given directions change.
starboolean[*] overlay: tile drawn above the character.
terrainTagintegerTerrain tag 0–7 (0 = none).

get_system

Get system data

get_variables

Get all game variable names

set_variable_name

Set a variable name. Grows the project's variable list if the id is past the end (padded to the editor's 20-slot block), so an id from next_free_id can always be labelled. Naming a variable as soon as you claim it is what makes it visible to the next session — see list_allocated_ids.

ParameterTypeDescription
name *stringThe name to assign
variableId *integerThe 1-based variable ID
dryRunbooleanPreview only: return a diff of what would change without writing to disk.

get_switches

Get all game switch names

set_switch_name

Set a switch name. Grows the project's switch list if the id is past the end (padded to the editor's 20-slot block), so an id from next_free_id can always be labelled. Naming a switch as soon as you claim it is what makes it visible to the next session — see list_allocated_ids.

ParameterTypeDescription
name *stringThe name to assign
switchId *integerThe 1-based switch ID
dryRunbooleanPreview only: return a diff of what would change without writing to disk.

get_game_title

Get the game title

update_game_title

Update the game title

ParameterTypeDescription
title *stringThe new game title
dryRunbooleanPreview only: return a diff of what would change without writing to disk.

get_title_screen

Get the title screen settings: title1Name/title2Name (background layers, from list_assets("titles1"/"titles2") — title2Name draws over title1Name), titleBgm (the AudioFile that plays while it is shown), and drawTitle (whether the game title text is drawn over the art).

update_title_screen

Update the title screen: background layers (title1Name/title2Name, basenames from list_assets("titles1"/"titles2")), the BGM that plays while it is shown, and/or whether the game title text is drawn over the art. Only the provided fields are changed. Warns (never blocks) when an image/audio name is not a known asset. Returns the updated title screen settings.

ParameterTypeDescription
drawTitlebooleanWhether to draw the game title text over the background art (the editor's "Draw Game Title" option)
dryRunbooleanPreview only: return a diff of what would change without writing to disk.
title1NamestringBackground image basename from list_assets("titles1") (the far layer)
title2NamestringBackground image basename from list_assets("titles2") (drawn over title1Name)
titleBgmobjectBGM that plays while the title screen is shown

get_starting_position

Get the game starting position ({ mapId, x, y })

update_starting_position

Update the game starting position

ParameterTypeDescription
mapId *integerStarting map ID
x *integerStarting x tile
y *integerStarting y tile
dryRunbooleanPreview only: return a diff of what would change without writing to disk.

get_party

Get the starting party — the actor ids the game begins with. Returns `{ partyMembers }`, rhyming with set_party's input/output shape.

set_party

Set the starting party (the actor ids the game begins with, in order). Every id must reference an existing actor.

ParameterTypeDescription
partyMembers *arrayOrdered actor ids for the starting party
dryRunbooleanPreview only: return a diff of what would change without writing to disk.

get_terms

Get the game vocabulary/terms: the `basic`, `commands`, `params` string arrays and the `messages` map (menu labels, system messages).

set_term

Set one vocabulary term. For category 'basic'/'commands'/'params' the key is a numeric index (as a string); for 'messages' it's a message key (e.g. 'actorDamage'). Returns the updated terms.

ParameterTypeDescription
category *stringWhich term group to edit
key *stringIndex (for basic/commands/params) or message key (for messages)
value *stringThe new term text
dryRunbooleanPreview only: return a diff of what would change without writing to disk.

get_types

Get one System.json type-name array — the named lists other data references by index: elements, skillTypes, weaponTypes, armorTypes, or equipTypes.

ParameterTypeDescription
category *stringWhich type-name array to read

set_type_name

Rename one entry in a System.json type-name array (elements/skillTypes/weaponTypes/armorTypes/equipTypes). Index 0 is the conventional empty slot. Returns the updated array.

ParameterTypeDescription
category *stringWhich type-name array to edit
index *integerIndex within the array (0 = empty slot)
name *stringThe new type name
dryRunbooleanPreview only: return a diff of what would change without writing to disk.

set_currency_unit

Set the currency unit shown next to gold amounts (e.g. "G", "Gold").

ParameterTypeDescription
unit *stringThe currency unit string
dryRunbooleanPreview only: return a diff of what would change without writing to disk.

list_assets

List the available asset filenames (extension stripped) for one asset kind — the exact names RPG Maker's data references (a sprite/face/tileset/audio name). Use it to validate a graphic or audio name before wiring it into an event; a wrong filename fails silently at runtime. Fails soft: an unused asset directory returns an empty list.

ParameterTypeDescription
type *stringAsset kind to list. Images: characters, faces, tilesets, pictures, parallaxes, battlebacks1, battlebacks2, enemies, sv_actors, sv_enemies, titles1, titles2, system. Audio: bgm, bgs, me, se.

list_names

Cheap names-only index for a database table. Returns { id, name } entries instead of full records — use it to look up or sanity-check IDs before wiring them into events, without paying the token cost of a full get_*/search_* dump.

ParameterTypeDescription
type *stringWhich table to index: actors, classes, items, weapons, armors, skills, enemies, troops, states, common_events, tilesets, or maps.

get_database

Read a database table in full: actors, classes, items, weapons, armors, skills, enemies, troops, states, or common_events. Returns the raw 1-indexed array (slot 0 is null), or — with `id` — that single record, or null if no such record exists. These are full records: prefer list_names for an id→name index, or search_actors/search_items/search_skills to find records by name, and reach for this only when you need every field. Maps and tilesets are not here: use get_map_infos/get_map and get_tilesets/get_tile_flags. Read-only.

ParameterTypeDescription
type *stringWhich table to read: actors, classes, items, weapons, armors, skills, enemies, troops, states, or common_events.
idintegerReturn just this record (null if missing); omitted = the whole table

validate_event

Validate a single event's command lists against the known RPG Maker MZ command table, plus its placement against the tile it sits on: an action-button page with priority below on an impassable tile (can never trigger) and an invisible wall (a graphic-less, priority-same, non-through page on a walkable tile — the player bumps into nothing; an action-button page over a drawn B–E object is exempt, as the solid-landmark idiom). Read-only: reports warnings without changing anything.

ParameterTypeDescription
eventId *integerThe ID of the event to validate
mapId *integerThe ID of the map

validate_project

Validate the event command lists of every map in the project, plus each event's placement (action-button-below on an impassable tile; graphic-less priority-same invisible walls on walkable tiles, except action-button pages over a drawn B–E object). Read-only: returns aggregated, map-tagged warnings for auditing before or after a batch of edits.

validate_references

Audit cross-file reference integrity across the whole project (read-only, warn-by-default): Transfer Player targets and starting position point at existing maps; starting party, actor classes, class/enemy skills, troop members, enemy drops, and skill/item effects (states, learned skills, common events, animations) all resolve; event commands that name a record (Change Items/Weapons/Armors, Change Party Member, Battle Processing, Shop Processing, Change State/Skill, Common Event) and map random encounters point at existing rows; and the map tree has no dangling or cyclic parentId. Complements v…

validate_assets

Audit asset-filename integrity across the whole project (read-only, warn-by-default): every image/audio name field — actor characterName/faceName/battlerName, enemy battlerName, tileset sheets, map bgm/bgs/parallax/battlebacks, event page graphics, event Play BGM/BGS/ME/SE / Show Picture / Show Text face / Change Actor Images, and system titles/battlebacks/default audio/vehicle graphics — is checked against the files present under img/ and audio/. Catches a wrong filename (e.g. a battlerName with no matching img/enemies/*.png) before it becomes a runtime "Failed to load" error. An asset ki…

list_allocated_ids

Show which switch / variable / common-event IDs are already spoken for, derived from the project's own JSON (never a hand-maintained list, which would drift the moment someone edited in the RPG Maker editor). An id counts as allocated if it is declared (a System.json label, a CommonEvents row) OR referenced anywhere — event page conditions and command lists, common events, troop pages, and Common Event skill/item effects. Use this before reusing an id, and pass `id` to answer "where is switch 23 actually used?" before touching it. Returns { count, highest, gaps, declaredCapacity, allocated[]…

ParameterTypeDescription
type *stringWhich id namespace: switch, variable, or common_event. Database rows (actors, items, …) are not here — create_*/batch_create assign those ids, and list_names shows what exists.
idintegerReport just this id — whether it is allocated, its label, and every place it is referenced. Omitted = the whole namespace.

next_free_id

Reserve the next unallocated switch / variable / common-event ID(s) instead of picking one by hand. Ids are handed out strictly above every id already declared or referenced, so two sessions editing the same project over time cannot silently claim the same switch — a collision that never crashes and only surfaces hours into a playtest as a door that is inexplicably already open. Pass `reuseGaps: true` to fill holes below the highest id first (off by default: a hole is often an id claimed in notes but not yet written). Read-only — it suggests ids, it does not write them; name what you take…

ParameterTypeDescription
type *stringWhich id namespace: switch, variable, or common_event. Database rows (actors, items, …) are not here — create_*/batch_create assign those ids, and list_names shows what exists.
countintegerHow many consecutive free ids to return (default 1)
reuseGapsbooleanFill unallocated holes below the highest id first (default false)

batch_create

Create many database records of one type in a single call and a single file write — the batch sibling of create_actor/create_item/create_weapon/create_armor/create_skill/create_enemy/create_state/create_class. Each entry in `records` takes the same fields its single create_* tool accepts (only `name` is required for most; omitted fields use the editor's defaults). Ids are allocated sequentially from the current max, so a record can reference a sibling created earlier in the same batch. Use this instead of N sequential create_* calls when authoring a cast, a loot table, or a skill list. Retur…

ParameterTypeDescription
records *arrayThe records to create, each shaped like the matching create_* tool's arguments (e.g. for type "actor": { name, classId?, ... })
type *stringWhich database the records are appended to
dryRunbooleanPreview only: return a diff of what would change without writing to disk.

delete_record

Delete one database record (actor, class, skill, item, weapon, armor, enemy, troop, state, or common_event) by nulling its slot — ids never shift, so nothing else is renumbered. Reports every reference the deletion would leave dangling (an actor's class, a troop member, a Change Items / Shop / Battle Processing command, a skill effect, the starting party, …; found with the same audit validate_references runs, see `coverage` in the response) and REFUSES, writing nothing, when there are any — pass force: true to delete anyway, or dryRun: true to preview the references without throwing. Del…

ParameterTypeDescription
id *integerThe id of the record to delete
type *stringWhich database table: actor, class, skill, item, weapon, armor, enemy, troop, state, or common_event
dryRunbooleanPreview only: return a diff of what would change without writing to disk.
forcebooleanWrite even if validation finds structural problems (wrong parameter count, unterminated command list). Off by default: such a write is refused and nothing is written. Advisory warnings never block reg…

reset_table

Clear a whole database table (actor, class, skill, item, weapon, armor, enemy, troop, state, or common_event) except the ids in `keep` — e.g. reset_table('skill', { keep: [1, 2] }) wipes the RTP skills but keeps Attack/Guard, the usual first step before authoring your own database with batch_create. Kept records stay at their own id; the rest become null and trailing empty slots are trimmed (the table is [null] when nothing is kept). Like delete_record it REFUSES, writing nothing, when the removal would leave references dangling (map events giving removed items, troops of removed enemies,  

ParameterTypeDescription
type *stringWhich database table: actor, class, skill, item, weapon, armor, enemy, troop, state, or common_event
dryRunbooleanPreview only: return a diff of what would change without writing to disk.
forcebooleanWrite even if validation finds structural problems (wrong parameter count, unterminated command list). Off by default: such a write is refused and nothing is written. Advisory warnings never block reg…
keeparrayIds to keep (each must exist); omitted = remove every record

scan_plugins

Discover the plugin commands this project actually has, by parsing the @command/@arg annotations in js/plugins/*.js and the enabled/disabled state in js/plugins.js. Use it to find out what create_plugin_command can call and with which args — it reports every command's key, label, description and args (name/type/default), plus whether the plugin is enabled in the editor's Plugin Manager (a disabled plugin's commands never run). create_plugin_command validates against this scan automatically, so you don't need to call this first; it's for discovery. Pass pluginName to narrow to one plugin, or…

ParameterTypeDescription
enabledOnlybooleanOnly report plugins enabled in js/plugins.js (default false)
pluginNamestringOptional: restrict to one plugin (its filename without .js)

export_web

Export a pruned HTML5 web deployment (for itch.io or any static host): copies index.html, js/, css/, fonts/, icon/ and data/*.json, plus only the img/audio/movies files the game references (every string in data/*.json, string literals in the core js and plugins, plugin @default annotations; img/system is always kept) and only the effects/*.efkefc Effekseer effects actually referenced (an animation's effectName, a Plugin Command argument, or a plugin parameter/string — not other data strings) together with the textures/models they list internally. Writes the folder to outDir and, by default,…

ParameterTypeDescription
outDir *stringFolder to write the deployment into (absolute, or relative to the project root). Must not be the project folder or inside its img/audio/data/js/… folders.
prunebooleanDrop img/audio/movies/effects files nothing references (default true). Set false to copy every asset — the escape hatch if a plugin builds asset names at runtime.
zipbooleanAlso write <outDir>.zip with index.html at the archive root (default true).

render_map

Screenshot a map as the game actually draws it: boots the project headless, starts a new game on the map, and saves a PNG. Validators prove structure, not looks — use this to catch wrong wall/autotile kinds, void (unbased transparent tiles), odd sprites or missing images. Default renders the WHOLE map (canvas resized to width×height×48px, player hidden, autorun/parallel events frozen, map-name banner off); pass x+y for a normal 816×624 game-screen view centred on that tile. Returns the PNG path plus `problems` — console errors, page errors and HTTP 404s (missing assets — a missing ima…

ParameterTypeDescription
mapId *integerMap to render.
inlinebooleanAlso return the PNG(s) as image content in the response (default false: paths only — read the file to view it).
outstringOutput .png path, or a directory. Default: <os tmpdir>/rpgmaker-mz-mcp/renders.
runEventsbooleanLet autorun/parallel events run before the shot (default false: resting map).
showEventsbooleanDraw event sprites (default true). false = bare tiles only.
showPlayerbooleanDraw the player (default: hidden for a whole-map render, shown for a view).
switchesarraySwitch ids to turn ON first, to see event pages of a later story state.
xintegerWith y: render a normal screen view centred on this tile instead of the whole map.
yinteger

run_playtest

Play the game headless from a script of steps and report what happened — the runtime check validators cannot do (does the door transfer, does the NPC say the right thing, does the choice branch, is there an invisible wall). One browser session runs the whole script; each step reports its outcome and the run stops at the first failing step. Steps: `load` {mapId,x,y,direction?,party?,level?,gold?,switches?,variables?,selfSwitches?,items?,equip?,encounters?} starts a fresh game there (random encounters off unless encounters:true); `startEvent` {eventId} starts a map event as if triggered and le…

ParameterTypeDescription
steps *arrayThe script, run in order.
inlinebooleanAlso return the PNG(s) as image content in the response (default false: paths only — read the file to view it).
outstringDirectory for screenshot PNGs. Default: <os tmpdir>/rpgmaker-mz-mcp/renders.
realtimebooleanPlay battles at real-time speed (default false: battles are fast-forwarded). Real time takes ~10-20x longer — raise autoBattle maxMs to match.