gavel_coverage
Analyzes code coverage for a project, reporting overall percentage and per-file breakdown. Optionally shows coverage change since last baseline or filters by specific files or packages.
Instructions
Get code coverage for a project. Runs a full analysis and reports the overall percentage plus a per-file breakdown. Pass 'files' to focus on specific files and see their uncovered line ranges.
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": "gavel_coverage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | No | Show per-file coverage change since the last green baseline (only files whose coverage moved, plus files with no baseline marked '(new)'). Reports 'No previous baseline' on the first run. | |
| files | No | Filter the per-file breakdown to these file paths (relative to workspace root). When set, uncovered line ranges are listed for each file. | |
| project | No | Project name (analyzes all projects if omitted) | |
| packages | No | Filter the per-file breakdown to whole package trees (relative to workspace root). A trailing '/...' matches the package and its subpackages; without it, only files directly in that package. Mutually exclusive with 'files'. Same output as 'files', with uncovered line ranges. | |
| gavelspace | No | Absolute path to a gavelspace directory (omit to use the directory where Claude Code is running) |