search_trace
Trace search algorithms step by step, showing selected nodes, added or skipped children, frontier, and explored set to debug and verify graph-search behavior.
Instructions
Trace a search algorithm step by step (selected node, children added/skipped, frontier, explored set).
algorithm: bfs | dfs | ucs | greedy | astar | dls | ids | idastar edges: [[from, to, cost], ...]; cost defaults to 1. Undirected unless directed=true. heuristic: {"state": h, ...} for greedy / astar / idastar. mode: "graph" (explored set; don't re-add states in frontier/explored) or "tree" (no explored set). child_order: "alphabetical" or "given" (order edges were listed). tie_break: alphabetical | fifo | lifo. goal_test: "default" (BFS on generation, everything else on selection), "generation" or "selection".
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": {
"algorithm": "<algorithm>",
"edges": "<edges>",
"start": "<start>",
"goal": "<goal>"
},
"name": "search_trace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | Yes | ||
| mode | No | graph | |
| edges | Yes | ||
| start | Yes | ||
| directed | No | ||
| algorithm | Yes | ||
| goal_test | No | default | |
| heuristic | No | ||
| max_depth | No | ||
| max_steps | No | ||
| tie_break | No | alphabetical | |
| child_order | No | alphabetical | |
| depth_limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |