Explain a flaky test
explain_testEvidence for one test (outcomes on the same commit and settings, fingerprints, durations, environments) plus, when the backend has Gemini configured, AI hypotheses and investigation steps. Facts and hypotheses are kept separate; if AI is down the facts are still complete. If the hypotheses are still being generated (aiStatus pending), call it again in about a minute. Cached per evidence.
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": {
"repo": "<repo>",
"test": "<test>"
},
"name": "explain_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | GitHub repository as owner/name | |
| test | Yes | The test: idHash from list_tests, or (part of) its name or test ID |