clear-element
Clear text from mobile app input elements using Appium automation. Specify element selector and strategy to remove existing content.
Instructions
Clear text from an input 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": "clear-element"
}
}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) |