clear_text
Clears the currently focused text field by deleting its contents, using field length when available and a fallback deletion limit otherwise.
Instructions
Clear the currently focused text field. On Android it reads the focused element's text length from the UI tree and deletes accordingly (move to end + backspaces).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "clear_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| observe | No | Capture screen state after clearing. Default: none | |
| platform | No | Target platform. Inferred if omitted. | |
| device_id | No | Device ID. Omit for the connected device. | |
| max_chars | No | Fallback number of deletions when the field length cannot be determined. Default: 100 (Android) / 50 (iOS) | |
| observe_delay_ms | No | Ms to wait before observing. Default: 500 |