Find a path around walls
find-pathCalculate a path around blocking walls between two tokens or points on a scene, returning its length, without moving anything. Supports movement, sight, light, and sound obstacles on square or gridless scenes.
Instructions
Find a way from a token or point to another around walls that block movement (or sight, light, sound), on square and gridless scenes, and its length. Moves nothing; move-token moves a token. Works without a drawn canvas.
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": {
"from": "<from>",
"to": "<to>"
},
"name": "find-path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Goal: { tokenId } (id or name of a token), or { x, y } in pixels | |
| from | Yes | Start: { tokenId } (id or name of a token), or { x, y } in pixels | |
| type | No | Which walls count; default move | |
| maxCells | No | Stop after searching this many grid cells, 100 to 200000; default 50000 | |
| sceneIdentifier | No | Scene id or name; default the scene that is active for everyone |