get_file_coverage
Get line-by-line coverage data for a file in a repository, showing coverage percentages and line-level hit/miss information.
Instructions
Get line-by-line coverage data for a specific file in a repository. Returns coverage percentages and line-level hit/miss information.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"owner": "<owner>",
"repo": "<repo>",
"file_path": "<file_path>"
},
"name": "get_file_coverage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | Repository owner (username or organization) | |
| repo | Yes | Repository name | |
| file_path | Yes | Path to the file within the repository (e.g., 'src/index.ts') | |
| ref | No | Git reference (branch, tag, or commit SHA). Defaults to default branch if not specified. |