find_path_to_node
Returns the shortest passive-tree path to a target node for build planning; optionally routes between any two nodes to measure distance.
Instructions
Find the shortest path from your current tree to a specific passive node. Uses loaded Lua bridge build when no build_name is provided. Supply from_node_id to route between any two arbitrary nodes regardless of the current build (e.g. measuring distance between keystones). Each node in the result includes its name, type and stat lines.
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": {
"target_node_id": "<target_node_id>"
},
"name": "find_path_to_node"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| build_name | No | Build to analyze (optional if a build is loaded via lua_load_build) | |
| from_node_id | No | Route from this specific node instead of the build's allocated frontier. Enables any-node-to-any-node routing independent of the current build. | |
| target_node_id | Yes | ID of the target passive node |