testTraceToSource
Map a test pattern to covered source lines from lcov.info or coverage-summary.json. Without per-test coverage, returns whole-suite coverage filtered by filename pattern.
Instructions
Map a test pattern to covered source lines from lcov.info or coverage-summary.json — no instrumentation needed. Without per-test coverage, returns whole-suite coverage filtered by filename pattern.
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": {
"testPattern": "<testPattern>"
},
"name": "testTraceToSource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coverageDir | No | Directory to search for coverage files (default: coverage/) | |
| minCoverage | No | Only show files at or above this line coverage % (default: 0) | |
| testPattern | Yes | Test name or filename pattern to match against coverage data |