web.web_fill
在网页上填表单并提交:支持输入(fill/type)、点击(click)、选下拉(select)、勾选(check/uncheck)、回车(press)、等待(wait/wait_for)、跳转(goto)、滚动(scroll)、悬停(hover)。steps 是动作数组,按顺序执行,每步形如 {"action":"fill","selector":"#user","value":"abc"}。只做机械执行——不想提交就别给最后那个 click,工具不替调用方判断该不该提交。注意:填表固定走 Chromium(Lightpanda DOM 不完整,定位不到表单元素),常驻 CDP 加速,实测 4 步 5.2s。某步失败会停下并返回已完成步数和当时的页面截图;只要动过页面就不会重跑,避免重复提交。禁止访问内网地址。
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": {
"url": "<url>",
"steps": "<steps>"
},
"name": "web.web_fill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | 要打开的网页 | |
| steps | Yes | 动作数组,例 [{"action":"fill","selector":"#user","value":"abc"}, {"action":"click","selector":"button[type=submit]"}] | |
| width | No | 视口宽,400~2400,默认 1280 | |
| height | No | 视口高,300~2400,默认 900 | |
| screenshot | No | 操作完是否截图,默认 True |