snapshot_show
Retrieve full details of a codebase metrics snapshot. Supply a key or latest to get metrics, hotspots, and deltas versus previous and baseline.
Instructions
Show full details of a specific codebase metrics snapshot.
Pass a snapshot key (tree hash) to retrieve that exact snapshot, or use
the special value "latest" (default) to retrieve the most recent one.
Snapshot keys are the key field returned by snapshot_list().
The returned object contains the full metrics dict (total_nodes, total_edges, meaningful_nodes, docstring_coverage, node_counts, edge_counts, critical_issues, complexity_median), the top hotspots, and deltas computed vs. both the previous and the baseline (oldest) snapshots.
:param key: Snapshot key to load, or "latest" for the most
recent snapshot (default "latest"). Keys are tree
hashes returned by snapshot_list().
:return: JSON object with full snapshot details, or an error dict if
the requested snapshot does not exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | latest |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |