input_text
Types Chinese or Unicode text into an Android input field, optionally focuses it, clears old content, presses Enter, and can return the updated UI tree.
Instructions
极速中文/Unicode 文本输入工具。 可一步完成『聚焦输入框 -> 清空旧内容 -> 注入中文字符串 -> 按回车提交 -> 返回新界面 UI 树』,并自动保护系统原输入法不被篡改。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | 要输入的文本;UIAutomator2 通道支持中文和 Emoji,不可用时明确返回失败 | |
| index | No | 可选:输入前先点击聚焦的输入框元素编号 #index | |
| clear_first | No | 输入前是否清空原有内容,默认 True | |
| press_enter | No | 输入完成后是否自动按下回车/搜索键,默认 False | |
| resource_id | No | 可选:输入前先点击聚焦的输入框 resource-id | |
| hint_or_text | No | 可选:输入前先点击聚焦的输入框提示词或文本 | |
| return_ui_after | No | 输入后是否附带完整 UI 树。默认 False——每次重抓全树约 200ms 并吃掉大量上下文;要看结果用 ui_snapshot(since_snapshot_id=...) 只取差异 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |