find_code
Locate the method or class that answers a question about a codebase and return only that symbol with its code, avoiding whole-file reads.
Instructions
Find the method or class that answers a question about a codebase; returns only that symbol.
Output: "file:first-last Symbol" and its code, instead of whole files. Name the class or
method if you know it ("PedidoJpaMapper aDominio"). AMBIGUOUS lists candidates in different
files: refine the query or pass clue. The index resyncs by checksum, so code is never stale.
Args: query: What you are looking for: identifiers plus a few words. path: Project root directory (absolute). scope: "main" (skip tests, default), "test" or "all". subpath: Restrict to a directory inside the project. clue: Extra detail after an AMBIGUOUS reply. max_tokens: Cap on the returned code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clue | No | ||
| path | Yes | ||
| query | Yes | ||
| scope | No | main | |
| subpath | No | ||
| max_tokens | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |