find_symbol
Locate the definition of any function, class, method, or variable in your codebase. Returns kind, qualified name, file:line, and optional full source. Provides suggestions for near matches.
Instructions
Locate where a function/class/method/variable is DEFINED.
Returns each definition's kind, qualified name, and 'path:line'. With
include_body=True, also returns the full source of each match. If nothing
matches you get 'did you mean' suggestions.
Do NOT use to find usages/call sites — use find_references. Do NOT use for
free-text search — use search_code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Bare name ('connect') or dotted suffix ('Client.connect'). | |
| kind | No | Optional filter: class|function|method|variable|constant. | |
| include_body | No | Include full source body of each match (costs tokens). | |
| response_format | No | 'concise' or 'detailed'. | concise |
| limit | No | Max matches to return. | |
| offset | No | Pagination offset. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |