Get symbol at position
get_symbol_at_positionResolve the smallest code symbol at a given line and column, returning byte-precise ranges and a source excerpt for focused code navigation.
Instructions
Resolve the smallest Tree-sitter symbol containing an exact 1-based line and 0-based column. Returns byte-precise ranges and a bounded source body for efficient code navigation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | 1-based source line | |
| column | Yes | 0-based character column | |
| directory | No | Project directory | . |
| file_path | Yes | Source file path relative to directory | |
| include_source | No | Include a bounded exact symbol body when found | |
| redact_secrets | No | Redact common secrets in returned source (default: true) | |
| max_source_bytes | No | Maximum source bytes returned for the symbol |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| meta | Yes | ||
| error | No | ||
| message | No | ||
| success | Yes | ||
| schema_version | Yes |