extract-locators
Extract mobile app UI element locators from XML source to identify components for automation testing with Appium.
Instructions
Extract element locators from UI XML source
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": {
"xmlSource": "<xmlSource>"
},
"name": "extract-locators"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xmlSource | Yes | XML source to analyze | |
| elementType | No | Filter elements by type (e.g., android.widget.Button) | |
| maxResults | No | Maximum number of elements to return |