输入文本
element_inputFill text into an input field using its element ID, with options to clear existing content or assign via JavaScript.
Instructions
向输入框元素输入文本。
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": {
"element_id": "<element_id>",
"text": "<text>"
},
"name": "element_input"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | 要输入的文本 | |
| by_js | No | 是否改用 JS 赋值 | |
| clear | No | 输入前是否清空已有内容 | |
| element_id | Yes | find_element 返回的元素 id |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| message | Yes |