zerodom_switch_profile
Switch the active Chrome profile so all subsequent ZeroDOM commands control a different logged-in account; register a new profile by endpoint once, then switch back without losing session state.
Instructions
Drive a different Chrome profile — full interactive control, not just fetch.
Each profile is its own real Chrome (its own relay + login). After switching, EVERY tool (navigate, scroll, click, read, screenshot, …) drives THIS profile; switch back and the other is right where you left it. Use it to work two or three logged-in accounts side by side.
endpoint— register a new profile the first time: zerodom_switch_profile("B", endpoint="ws://127.0.0.1:8766/cdp/local"). Set up once:zerodom relay --port 8766, then click Connect in that profile's extension (it auto-finds a free port — no URL to type).name alone — switch to an already-registered profile. "default" is the original session (ZERODOM_CDP_ENDPOINT / port 8765).
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": {
"name": "<name>"
},
"name": "zerodom_switch_profile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| endpoint | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |