get-element-text
Extract text content from mobile app UI elements using Appium automation. Specify element selector and strategy to retrieve displayed text for testing or data collection.
Instructions
Get text content from a UI element
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": {
"selector": "<selector>"
},
"name": "get-element-text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | Element selector (e.g., xpath, id) | |
| strategy | No | Selector strategy: xpath, id, accessibility id, class name (default: xpath) |