read_interface
View class headers, field declarations, and method signatures with bodies replaced by '...' to understand public APIs without reading full implementations. Use for functions to get just their signatures.
Instructions
Return a stub view of a class: its header, field declarations, and method signatures -- with all method bodies replaced by ' ...'. For a function target, returns just its signature. Read-only.
Use this when: You need to understand a class's public API (what methods and
fields it has) without reading every line of implementation. Typically 5-10x
fewer tokens than reading the full class.
Don't use this when: You need the full implementation -> use read_symbol.
You only need one method's signature -> use get_signature.
Example: target="LRUCache" # returns class header + method sigs + fields target="process" # returns function signature (no class)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| target | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |