ui.set_text
Inputs text into a specified Android UI component, or the focused input field when no selector is set, clearing existing text by default.
Instructions
精确输入到指定组件(优先 ACTION_SET_TEXT;无 selector 时输入到聚焦框)
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": {
"text": "<text>"
},
"name": "ui.set_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pkg | No | ||
| text | Yes | ||
| clear | No | ||
| selector | No |