connect-browser-with-ws
Establish a WebSocket connection to an AdsPower browser instance using its WebSocket URL, enabling remote control and automation of browser profiles.
Instructions
Connect the browser with the ws url
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": {
"wsUrl": "<wsUrl>"
},
"name": "connect-browser-with-ws"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| userId | No | The browser id of the browser to connect | |
| serialNumber | No | The serial number of the browser to connect | |
| wsUrl | Yes | The ws url of the browser, get from the open-browser tool content `ws.puppeteer` |