relevant_files
Find the defining file, dependent call sites, and local dependency signatures for a function or class, giving agents the minimal repo slice needed to reason about that symbol.
Instructions
Find the files that matter for a given symbol (function or class name).
Returns the file(s) that define it, the call sites in dependent files, and
signatures of the local modules they depend on. This is the slice of the repo
an agent needs to reason about symbol — usually a handful of files instead
of the whole tree.
Args: symbol: a top-level function or class name, e.g. "CodeIndex". include_source: if true, also inline the defining files' source. include_full_dependents: if true, list dependent file paths instead of inlining the call sites where the symbol is used. include_full_imports: if true, list local import paths instead of inlining their signatures.
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": {
"symbol": "<symbol>"
},
"name": "relevant_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | ||
| include_source | No | ||
| include_full_imports | No | ||
| include_full_dependents | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |