session
Control Chrome browser lifecycle: check status, launch or restart with options, and close or disconnect for AI agent automation.
Instructions
Browser session: status (mode, headless, browser version, profile, tabs, active tab), launch (restart with new options; tabs are not carried over, cookies persist in a persistent profile), close (close the browser in launch mode, disconnect in attach modes).
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": {
"action": "<action>"
},
"name": "session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| action | Yes | ||
| headless | No | ||
| isolated | No | Fresh temporary profile, deleted on exit | |
| cdp_endpoint | No | http(s)://host:port or ws(s)://… for mode=connect |