browser_navigate
Navigate forward, back, refresh, or reload the browser page with configurable wait conditions.
Instructions
Navigate the browser: go forward, back, refresh, or reload the current page with configurable wait conditions.
中文详情:
用途:控制浏览器导航操作(前进/后退/刷新/重新加载当前页面)
何时使用:在 browser_open 打开页面后需要控制加载状态时;表单提交后需要 reload 重置状态时;测试浏览器后退/前进按钮行为时;页面资源加载不完整需要 refresh 时
输出:{ ok: boolean, url: string, action: string, timestamp: string }
参数:
action (string, 必填):导航操作,可选 forward / back / refresh / reload,默认 refresh
waitUntil (string, 可选):等待条件,可选 domcontentloaded / load / networkidle,默认 domcontentloaded
timeout (number, 可选):超时毫秒数,默认 30000
错误:超时抛出 'Timeout XXXXms exceeded';无效 action 值抛出 'Invalid action'
示例:{"action":"refresh","waitUntil":"networkidle","timeout":10000}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | 导航操作:forward(前进)、back(后退)、refresh(刷新)、reload(重新加载) | refresh |
| timeout | No | 超时时间,单位毫秒,默认30000 | |
| waitUntil | No | 等待条件:domcontentloaded(DOM加载完成)、load(页面完全加载)、networkidle(网络空闲) | domcontentloaded |