structure
Retrieve deterministic file and symbol structure of an enrolled repo to ground claims about existing functions, types, and exports. Use glob paths and detail levels to scope results and reduce token usage.
Instructions
Deterministic structure (files + symbols) of an enrolled repo's current code. Use to ground claims about what functions/types/exports exist. Scope with paths globs and pick a detail level to keep responses small.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | name of an enrolled repo (see `health`/registry) | |
| paths | No | optional glob filters; return only matching files (e.g. "internal/mcp/**" or "*.go"). `**` matches across directories. Omit for the whole repo. | |
| detail | No | tree = file paths + symbol counts only (cheapest); symbols (default) = per-file symbols[] (name/kind/line, plus `doc` — the verbatim first line of the symbol's doc comment where it has one, absent otherwise; it is the one field NOT verified against the code, so treat it as what the author wrote, not as checked intent) + refs; hashes = symbols plus each symbol's content hash (~2.5x the tokens; only needed to detect body-level drift, which `hash`/`diff`/`status` answer far more cheaply); full = also the legacy imports/functions/classes/exports arrays + symbol_hashes (redundant with symbols[], for back-compat) |