Capture locator baselines
capture_baselineRecords each locator's element details per platform while tests pass, creating baselines that locator-healing tools use to recover after app changes.
Instructions
While tests pass, record what each locator's element looks like (accessibility id, resource id, text, hint, class) in .qa-mcp/appium-baselines.json, per platform. heal_locator and heal-ci use these after the app changes. Run it on each screen your tests use (or on screens saved from passing runs).
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": {
"locators": "<locators>"
},
"name": "capture_baseline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| screen | No | ||
| locators | Yes |