attach_browser
Attach to your current Chrome or Edge tab over CDP loopback, or list open tabs to pick one by index or URL. Acts only on the selected tab with your explicit consent.
Instructions
Connect to your CURRENT Chrome/Edge tab via CDP (loopback only).
Requires Chrome/Edge running with --remote-debugging-port (launch: python -m body_mcp.cdp_launch). Requires your acknowledged consent + a scoped reflex_ask approval for exactly this action.
Without tab: lists your real tabs (index, title, url) and keeps the session open.
With tab: attaches directly to that tab (index, or unique url/title substring).
DevTools windows are never candidates; unselected tabs are never touched.
The CDP port is unauthenticated-loopback: detach when done and restart the browser normally.
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": {
"endpoint": "<endpoint>"
},
"name": "attach_browser"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab | No | ||
| endpoint | Yes |