token-move
Move a token to new coordinates (pixels, top-left corner; pixel = gridCoord * gridSize). Use token-list to find tokenId. Pathfinding routes around walls and closed doors; the response reports pathCost (cells) when a detour was needed. Large+ tokens need corridors wide enough for their footprint. pathCost * gridDistance > speed means the move exceeds one turn. Closed doors count as walls unless the user explicitly asks to open doors (canOpenDoors=true; doorsOpened[] then lists the wall IDs). Locked (ds=2) and secret (door=2) doors are always impassable: use scene-set-door-state first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | New X position in pixels | |
| y | Yes | New Y position in pixels | |
| animate | No | Animate movement (default: true) | |
| tokenId | Yes | Token ID (use token-list to find) | |
| canOpenDoors | No | Open closed doors along the path. Only when the user explicitly asks; default false. |