info
Read a symbol's signature, source, and location, or a file's outline. Use mode='source' to get line-numbered file content and import references.
Instructions
Read a specific target. A SYMBOL (node id or name) -> source, signature and location. A FILE path -> its symbol outline by default (default limit 200 symbols) — a cheap structural overview. Set mode='source' to read the file's actual current content instead: line-numbered (same shape as Read, safe to Edit from), windowable with offset/limit exactly like Read, plus which files import it. Use mode='source' instead of opening the file yourself whenever you need the body, not just its symbol list. If a symbol name matches several definitions, pass file (a path or suffix) to pin the right one — e.g. one UserService per service in a monorepo.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| mode | No | outline | |
| limit | No | Max nodes to return (clamped to 200) | |
| offset | No | ||
| target | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | No | ||
| error | No | ||
| source | No | ||
| indexing | No | ||
| docstring | No | ||
| file_path | No | ||
| signature | No | ||
| truncated | No | ||
| dependents | No | ||
| file_nodes | No | ||
| repeat_hint | No | ||
| resolver_status | No | ok | |
| dependents_total | No |