read_symbol
Retrieve the source span of a named declaration without reading the entire file. Optionally fetch only the signature to minimize token usage.
Instructions
Return the SOURCE of one named declaration (its span), NOT the whole file — the read twin of replace_symbol_body. Skip Read-ing a whole file for one declaration. signatureOnly = head only; body capped by VTS_SYMBOL_MAX_LINES.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Declaration name to read (function/class/method/…). | |
| path | No | File holding the symbol (pins the outline; else resolved via the index). | |
| line | No | 0-based line to disambiguate same-named symbols (optional). | |
| signatureOnly | No | Return just the declaration head (signature), not the full body. | |
| projectPath | No | Project root (cwd). | |
| backend | No | Backend override; auto-detected. |