find_path
Find the shortest path between two nodes in a FastAPI project, like from an API route to a database table. Uses directed paths first, then falls back to undirected.
Instructions
Shortest paths between two nodes, e.g. from a route to a table ("POST /chat" → "chat_logs").
Directed paths are tried first; if none exists, direction is ignored and directed is false.
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": {
"project_root": "<project_root>",
"source": "<source>",
"target": "<target>"
},
"name": "find_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| target | Yes | ||
| max_paths | No | ||
| project_root | Yes |