下拉选择
web_selectPick one or more options from a dropdown list using display text or value. Enables browser automation to change form selections.
Instructions
在下拉列表(select)中选择一个或多个选项,可按 value 或按显示文本 label 选择。
权限说明:修改页面表单数据。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "web_select"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | 最近一次快照中的引用编号,与 selector 二选一 | |
| label | No | 按选项显示文本选择,与 value 二选一 | |
| value | No | 按选项 value 选择,与 label 二选一 | |
| timeout | No | 超时毫秒数,默认 10 秒,0 表示不限制 | |
| selector | No | CSS 选择器、text=关键词 或 testid=值,与 ref 二选一 |