browser_handoff
When a site asks for verification (2FA, captcha, identity check, re-login) that only the person can do, call this tool with the browser identity name and the URL that needs them. Returns a link to give the person — clicking it opens their browser identity already on that page. When they finish they press Done, and you can continue. For several pages in a row, navigate the SAME prepared window rather than preparing a new one: the person keeps watching one window.
With prepare=True (optional): start the identity's browser server-side on the URL, attach it for form-filling, and return a page_id. Use the page_id with browser.fill / browser.click to fill the form in the live browser before giving the person the link — they will see it already filled and only need to review and complete verification steps that only they can do (CAPTCHA, consent, 2FA code). The window stays open for 30 minutes; if you do not send the link within that time, the window closes and the person must start over.
A PENDING identity (just made with browser.create_identity, nobody signed in yet) when the person gave you what the sign-in needs (e.g. a one-time code they forwarded): call with prepare=true and confirm_agent_sign_in=true. Its sign-in window opens server-side and you get a page_id; sign in there yourself, check the page shows the signed-in state, then call browser.save_session(page_id): the identity becomes active and keeps the session. Nobody has to open a link.
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": {
"identity": "<identity>"
},
"name": "browser_handoff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | The URL that needs the person's attention. Must be https or http, and on the same domain as the identity's origin (e.g. https://dashboard.stripe.com/auth/verify). Subdomains are allowed. | |
| close | No | If true (optional, default false): close the identity's prepared window that nobody has opened yet. Use this when you no longer need the window you prepared with prepare=true; a window the person has opened is left to them. Returns whether a window was closed. Requires EDIT role (same as prepare). The window only closes if it belongs to this workspace. OMIT for a normal handoff. | |
| reason | No | Why the person is needed (optional, for context). E.g. '2FA code entry', 'identity verification', 'security check'. | |
| prepare | No | If true (optional, default false): start the identity's browser server-side on the URL and attach it so you can fill the form with browser.fill / browser.click before giving the person the link. Returns a page_id you can drive with the generic browser tools, plus the handoff link. False or omitted: just build and return the link — the browser starts when the person opens it. | |
| identity | Yes | The browser identity, by name or id (as browser.open takes it). An active identity of this workspace, or a pending one with prepare=true and confirm_agent_sign_in=true. | |
| in_workspace | No | Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected. | |
| confirm_agent_sign_in | No | Pass true together with prepare=true on a PENDING identity: you sign in yourself in its window with what the person gave you (e.g. a one-time code), and the session is then stored for the workspace by browser.save_session. Pass it only when the person asked you to sign in for them. OMIT for an active identity. |