browser_chain
Executes a sequence of browser actions with automatic error checking after each step. Stops on errors or optionally enforces validation to catch all issues.
Instructions
链式执行多个浏览器操作,每步操作后自动检查控制台错误和网络错误。发现错误可立即终止并返回失败步骤。支持强制执行模式,开启时强制进行错误检查且不可关闭。step.type 与 step.action 互为别名,二者至少传一个。
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": {
"actions": "<actions>"
},
"name": "browser_chain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actions | Yes | 操作步骤数组,每个步骤包含 type(或 action 别名)和相关参数 | |
| stopOnError | No | 是否在发现错误时立即停止,默认 true | |
| includeConsole | No | 是否检查控制台错误,默认 true(enforceValidation=true 时强制为 true) | |
| includeNetwork | No | 是否检查网络错误,默认 true(enforceValidation=true 时强制为 true) | |
| enforceValidation | No | 是否强制执行错误检查,开启时 includeNetwork 和 includeConsole 强制为 true 且不可被覆盖,默认 true |