Find walking path
find_pathComputes the shortest walking route between two map cells using RPG Maker MZ passage rules, returning move commands and a ready-to-use set_movement_route block.
Instructions
Shortest walking route between two cells using the engine's passage rules. Returns route command names (move_up, ...) and a ready-to-use set_movement_route block. With from={eventId} the event is the mover (blocked by any non-through event). adjacent=true (default when to is an event) stops next to the target and turns to face it.
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>",
"from": "<from>",
"to": "<to>"
},
"name": "find_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | {x, y} or {eventId} (the event's position) | |
| from | Yes | {x, y} or {eventId} (the event's position) | |
| mapId | Yes | ||
| assume | No | Game state used to pick each event's active page. Default: all switches/self switches OFF, variables 0, no items. | |
| adjacent | No | ||
| ignoreEvents | No | Ignore events (tiles only). Default false: blocking events count as obstacles. | |
| ignoreEventIds | No | Events that never block (e.g. NPCs that will have moved away) |