sign_in
Built. sign_in fills a granted login's username and password into the sign-in form at a site, only in a frame whose origin, and every frame above it, is exactly the…
Built Built over the Chrome DevTools Protocol (a browser the agent drives) and through the person's paired extension in agent mode (Chrome). Both fills are disclosing; a sealed fill is planned, not built yet.
At a glance
| MCP tool | sign_in ("Sign in to a site") |
|---|---|
| CLI | bpw agent sign_in |
| Default friction | None inside a grant for that site that allows disclosure. |
| Delivery | Disclosing over CDP and through the extension: code with access to the page can read what was filled, and the result says delivery: disclosing. A sealed fill is planned, not built yet. |
| MCP hints | readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true |
Parameters
Required: credential, site. Unknown arguments are refused. The descriptions are the tool's own, as bpw mcp serves them.
| Name | Type | Required? | Description |
|---|---|---|---|
credential | string | required | A credential reference (item ID), as list_credentials returns it. Not a secret value. Not empty. |
site | string | required | A site origin or host, for example https://dash.example.com. 1 to 2048 bytes. |
cdp | string | optional | The Chrome DevTools endpoint of the browser you drive, on this machine: http://127.0.0.1:PORT (or [::1]) or ws://127.0.0.1:PORT/devtools/browser/ID. BotPassword connects to it itself. 1 to 256 bytes. |
target | string | optional | With cdp: the tab to fill, by its DevTools target ID. Without it, the one tab whose page is at the site. 1 to 64 bytes. Matches ^[A-Za-z0-9-]+$. |
tab | integer | optional | Without cdp: the tab to fill in the person's browser, by the extension's tab ID. Without it, the one tab whose page is at the site. 0 to 2147483647. |
submit | boolean | optional | Submit the form after filling it (default false). |
Example
A tools/call request, with placeholder references (use the id that list_credentials returns):
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "sign_in",
"arguments": {
"credential": "ITEM-EXAMPLE-02",
"site": "https://dash.example.com",
"cdp": "http://127.0.0.1:9222",
"submit": true
}
}
}
The result. The same JSON is also sent as text in content[0].text; isError is false for success.
{
"structuredContent": {
"outcome": "success",
"site": "https://dash.example.com",
"fields": [
"username",
"password"
],
"submitted": true,
"delivery": "disclosing"
},
"isError": false
}
Without cdp, the fill goes through the person's paired extension in the one tab at the site, or the tab you name.
From the command line
bpw agent sign_in --credential ITEM-EXAMPLE-02 --site https://dash.example.com --cdp http://127.0.0.1:9222
bpw agent <intent> sends the same request as the MCP tool, through the same policy. Every intent except status needs a live agent session, or the answer is session_required. Run the harness with bpw agent run -- <harness>. On macOS and Linux, an enrolled harness started normally can also be approved in the desktop app or with bpw session approve.
Result fields
Every result is one JSON object. Only outcome is always present.
| Field | Type | Meaning |
|---|---|---|
outcome | string | The typed outcome code. Always present. |
detail | string | The request ID, rotation step, revision or reason, for the outcomes that carry one. |
intent | string | With not_implemented: the intent this build cannot carry out. |
reason | string | With rejected: why the call was refused. |
message | string | With rejected or daemon_unavailable: what was wrong. Never quotes an argument value. |
next_step | string | On a result that is not a plain success: one sentence on what to do now. Fixed text chosen by the outcome code; it never asks for a password or secret and never says to get around a refusal. |
site | string | The canonical origin the result is about. |
fields | array | The fields filled. Never their values. |
submitted | boolean | Whether the form was submitted. Not whether the site accepted it. |
delivery | string | sealed or disclosing: whether code the agent controls could read the value. One of disclosing, sealed. |
Outcomes it can return
success: The request ran.needs_human: Something only a person can do stands in the way.scope_denied: The most common refusal.disclosure_not_granted: The request would let code the agent controls read the value (run_withwithenvorfiles,cli_login,sign_in,fill_totp), and the grant does not allow disclosure.grant_expired: A grant names this credential for this client, but its lifetime is over.unknown_outcome: A step ended in a way that does not show whether it took effect: a request timed out after it was sent, a connection dropped, or the extension had the value and did not report back.session_required: The call did not come from inside a live agent session: none was presented, it expired, or it is malformed.vault_locked: BotPassword on this device is locked, so no credential can be used.rejected: The request was malformed before policy saw it.daemon_unavailable:bpw mcporbpw agentcould not reachbotpasswordd, the desktop daemon that holds the keys.
See the outcome reference for what each one means and what to do next.
Limits
- In a browser the agent drives, the agent's browser tool could read the filled field back. A fill through the extension keeps the browser out of the agent's hands, but the page and other extensions can still read it.
- CAPTCHAs, device checks, email confirmations and passkey-only logins answer
needs_human. BotPassword does not bypass bot detection. needs_humanalso means no extension is listening, or no single tab is at the site.- The CDP endpoint must be loopback (
http://127.0.0.1:PORT,[::1], or aws://DevTools URL on loopback).
Tool description
What the MCP tool tells the agent, verbatim from bpw mcp:
Fills a granted login's username and password into the sign-in form at site. With cdp, in the browser you drive over the Chrome DevTools Protocol: BotPassword connects to it itself. Without cdp, in the person's own browser through the paired BotPassword extension with agent mode on, in the one tab at the site or the tab you name. Either way only a frame whose origin, and every frame's above it, is exactly the granted site is filled, and the origin is checked again in the page at the moment of the fill. Both fills are disclosing (code with access to the page can read it): the grant must allow disclosure, and the result says delivery disclosing. The result names the fields filled and whether the form was submitted; it does not say whether the site accepted the login (look at the page). needs_human means the person must act: no extension is listening, or no single tab is at the site. This tool never accepts or returns secret values. The result is a typed outcome such as success, vault_locked or scope_denied.
Related
fill_totp: computes the current one-time code from a granted TOTP seed inside BotPassword and fills it into the code field at the granted site.list_credentials: lists the credentials this agent client holds grants for, with each one's reference, kind, title, site and the intents its grant allows.- Intent catalog, MCP server, Grants and approvals