atlas_code_find
Locate function or class definitions and call sites across a codebase before opening files, returning file, line, and signature, plus optional function body or usage count.
Instructions
Locate function or class definitions across the codebase (file, line, signature, and optional body) and inspect call sites.
Use this tool BEFORE reading source files to find where a symbol lives (~30 tokens per signature vs.
thousands of tokens for a full file), set `include_body=True` to read just that function's implementation,
or set `usage=True` to check if a symbol is actually called before marking a task done. Supports GDScript
(`.gd`/`.tscn`), Python, TypeScript/JavaScript, Rust, C#, Go, Java, Kotlin, and Swift.
Behavior & Output:
- Read-only static scan of project source files; ignores build directories and `.atlas/`.
- Returns a formatted summary of matching definitions (`path:line — signature`), optional function body,
and, when `usage=True`, the caller/reference count and file:line call sites for each symbol.
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": "atlas_code_find"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of matching symbol definitions to return (1-100, default 10). | |
| usage | No | If true, also scan the repository for call sites and references to each matched symbol (including Godot `.tscn` signal bindings) to verify whether the symbol is wired up (default false). | |
| symbol | Yes | Function, method, or class name (or substring) to search for across the codebase (e.g. 'apply_damage' or 'TurnManager'). Does not match local variables. | |
| include_body | No | If true, also extract and return the function or class body (lines start..end, capped at 80 lines) so you can inspect the implementation without opening the full source file with Read (default false). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |