接管浏览器
browser_connectAttaches to a running browser via its debugging port (127.0.0.1:9222). The browser stays open after the server stops, preserving existing sessions for continued automation.
Instructions
接管一个已在运行的浏览器(需开启远程调试端口,默认 127.0.0.1:9222)。
接管后的浏览器在本服务关闭时不会被退出。
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": "browser_connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | No | 127.0.0.1:9222 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | launched=本服务启动, connected=接管已有浏览器 | |
| address | Yes | ||
| tab_ids | No | ||
| is_alive | Yes | ||
| browser_id | Yes | ||
| context_ids | No | ||
| is_headless | No |