read_symbol
Extract source code for specific functions, classes, or config keys from files without loading entire documents, reducing token usage by 10-20x for focused code analysis.
Instructions
Return the full source text of a single named symbol (function, class, method, config key) without reading the entire file. Read-only.
Use this when: You need to see the implementation of ONE specific function or
class. Far cheaper than reading the whole file -- typically 10-20x fewer tokens.
Don't use this when: You need a structural overview of the file -> use
list_symbols. You only need the signature -> use get_signature.
Example: target="LRUCache.get" # returns just the get method's source target="LRUCache" # returns the entire class source target="project.version" # returns the value node for a config key
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| target | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |