Expand description
Browser capture: a secret a web page shows once goes straight into the Vault
(docs/specs/SPEC_VAULT_GENERATE_CAPTURE_AND_BROWSER_SIGNINS_2026_10_28.md §15.1).
The host reads the element a reference names and marks it as holding a Vault
value; srv stores what it read as a new entry, or as the new value of one the
agent names, and answers with the entry’s id. The value never reaches the agent.
The entry keeps the page’s origin, which the host takes from its own frame map,
as its service or site, and the Activity says “captured from
With download, the reference is the button or link that downloads a file (a
GitHub App’s private key): the host clicks it and takes the file off the network
before it becomes a download, so it is never written to disk, and srv stores its
text (a note by default). A click that commits something (a form’s submit)
waits for the person’s approval in the pane, as an act click does.
A new entry asks nobody: saving a value takes nothing out of the Vault, and the page already showed it. Replacing an existing entry’s value asks the person each time, as a capture from a command does (§4.2).
Structs§
- Capture
As 🔒 - Capture
Request 🔒 - Taken 🔒
- What a capture read from the page: the value, the page’s origin, the file’s name when a file was taken, and the element’s reference (text found beside a label has one now, which marks it once it is saved).
Constants§
- COPIED_
NOTE 🔒 - What the agent is told once a value taken from the page’s copy button is saved.
- DOWNLOADED_
NOTE 🔒 - What the agent is told once a downloaded file is saved.
- DOWNLOAD_
WAIT 🔒 - The longest the host waits for a download after its click (2 minutes), and time for the click and the reply.
- HOST_
WAIT 🔒
Functions§
- captured_
note 🔒 - What the agent is told about the page once the value is saved: what keeps hiding it there depends on whether the element could be marked.
- handle_
browser_ 🔒capture - handle_
capture 🔒 POST /api/v1/ui/browser/capture.POST /api/v1/ui/browser/capture: a card the page shows is saved whole, anything else is one value.- origin_
field 🔒 - The plain field a kind keeps a page’s origin in.
- read_
for_ 🔒capture - Reads the element and checks what came back, or the answer for the agent when it can’t be saved.
- rule_of 🔒
- The capture rule the request describes, checked like a command’s.
- store_
captured 🔒 - Stores a captured value: a new entry starts with the page’s origin as its
serviceorsite(unless the agent gave one), the fields and expiry date the agent gave; an existing one gets it as its new value, the old one kept 7 days. Returns the entry’s id and label. - take_
read 🔒 - The value and origin from the host’s answer, the value moved out of the JSON into memory that is wiped when dropped.