find
Resolve any text — symbols, stacktraces, test failures, or diffs — into ranked code nodes with path:line. Optionally expand to the surrounding neighborhood.
Instructions
Turn any text into the ranked nodes that matter — the on-ramp to the graph. A symbol or keyword returns matching nodes; a pasted stacktrace / failing-test id / diff is resolved to the code it implicates and ranked by relevance. Set expand=true to fan out to the surrounding neighbourhood (spreading activation). Every row carries path:line, so read the top hits directly — no grep.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Force the signal type: 'symbol', 'stacktrace', 'test', 'diff', or 'auto' (sniff the shape). | auto |
| query | Yes | What to locate: a symbol/keyword (e.g. `User`, `checkout`), OR a failure signal — paste a raw stacktrace, a failing-test id (path::test), or a unified diff / changed-file list. | |
| top_k | No | Max results. Default 20. | |
| budget | No | Max chars in the result. 0 = no cap. | |
| expand | No | Return the relevant neighbourhood (Personalized-PageRank ranked) around the matches, not just the matches themselves. Use to discover what surrounds a seed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |