Topos Detailed Inspection
topos_inspect_codeInspect a code unit to retrieve per-function complexity, entropy metrics, and a quality evaluation. Ideal for detailed structural analysis beyond a simple verdict.
Instructions
Full metric breakdown for a single code unit (inline string or file).
Read-only; provide exactly one of code or filepath. Use when you
need the per-function detail behind a verdict; use topos_evaluate_* when
the medal alone is enough. For filepath input, language is autodetected
from the extension; language only applies to inline code. Returns an
InspectionResult: the lattice evaluation, a top-N function complexity
table (top_n_functions, default 10), total_functions, and entropy
details. The top-N cap keeps large files from blowing out agent context.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes | Arguments for ``topos_inspect_code``. |