locate
Paste a stacktrace, failing test, or diff to identify the most relevant code nodes, ranked by personalized PageRank for targeted debugging.
Instructions
Resolve a failure signal — a stacktrace, a failing-test id, or a diff/changed-file list — to the most relevant nodes in the graph. Sniffs the signal shape, maps frames/symbols/paths to seed nodes, then ranks the surrounding subgraph by Personalized PageRank. The on-ramp for debugging: paste the error, get the code that matters.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signal | Yes | Raw stacktrace, failing-test id (path::test_name), or a unified diff / changed-file list. | |
| kind | No | 'stacktrace', 'test', 'diff', or 'auto' (sniff the shape). | auto |
| top_k | No | Number of ranked nodes to return. Default 20. | |
| mode | No | 'table' (ranked list) or 'prose' (primed prose for LLM context). | table |
| budget | No | Max chars in the result. 0 = no cap. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |