填写输入
web_fillClear and fill input fields, textareas, and editable areas on a web page using snapshot references or CSS selectors. Triggers input and change events after filling.
Instructions
清空并填写输入框/文本域/可编辑区域。目标是快照引用或选择器。填写后触发 input 与 change 事件。
权限说明:修改页面表单数据,可能触发校验与提交逻辑。
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": {
"value": "<value>"
},
"name": "web_fill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | 最近一次快照中的引用编号,与 selector 二选一 | |
| value | Yes | 要填入的完整内容(会先清空原内容) | |
| timeout | No | 超时毫秒数,默认 10 秒,0 表示不限制 | |
| selector | No | CSS 选择器、text=关键词 或 testid=值,与 ref 二选一 |