Snapshot statistics
snapshot_statsCount files by layer and kind, estimate tokens, and find the largest or most expensive snapshot parts from the manifest without rescanning the repository.
Instructions
Counts and costs: files by layer and kind, part sizes, token estimate, the largest files and the most expensive parts. Read from the manifest, so it is cheap and always agrees with what the snapshot claims.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "snapshot_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Repository root. Defaults to the directory this server was started in. | |
| outDir | No | Snapshot directory, relative to the root, and it must resolve inside the served repository. Defaults to the project configuration's outDir. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | ||
| kinds | No | ||
| parts | No | ||
| layers | No | ||
| tokens | No | ||
| heaviest | No | ||
| partSizes | No |