Repair a failed flow step
qa_flow_repairRepair a failed flow step by suggesting a stronger locator and app changes, and optionally patch simple selector steps at high or medium confidence.
Instructions
Repair a failed flow step: suggest a stronger locator and app changes (testID/accessibilityIdentifier); apply:true patches simple selector steps at high/medium confidence (low confidence: refused, applied:false + a note).
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": {
"sessionId": "<sessionId>",
"failedStep": "<failedStep>"
},
"name": "qa_flow_repair"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flow | No | Flow name/path under .swipium/flows. | |
| apply | No | Patch the flow file when safe (default false). | |
| flowYaml | No | Inline flow YAML. | |
| sessionId | Yes | ||
| failedStep | Yes | Zero-based failed step index from qa_flow_run.failedAtStep. |