ruyi_attach_browser
Attach to a running Firefox browser via its WebDriver BiDi port to control it directly, without launching new processes or navigating pages, and keep the external browser alive after the MCP session ends.
Instructions
通过 Firefox WebDriver BiDi 端口接管已启动的浏览器,不新建进程、不导航页面,MCP 退出或 bridge 超时时保留外部浏览器。
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": {
"port": "<port>"
},
"name": "ruyi_attach_browser"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | Firefox --remote-debugging-port | |
| address | No | 监听地址,默认 127.0.0.1 | 127.0.0.1 |
| profilePath | No | 现有 Firefox profile 绝对路径(可选) | |
| traceEnabled | No | 接管后启用 BiDi trace,默认 false |