Skip to main content

Module type_cmd

Module type_cmd 

Source
Expand description

browser-control type — type into the focused element.

Exists chiefly so a secret can reach a login form without passing through the agent driving the login:

op read op://Automation/site/password |
  browser-control type -b brave/login --stdin --submit

The value travels an OS pipe between two processes the agent spawned. It is never a tool result, never a log line, and never in the agent’s context — only the reference (op://…) is, which is not a secret.

Any vault works: anything that prints a secret on stdout is a resolver (op read, bw get password, vault kv get -field, security find-internet-password -w, browser-control vault read). browser-control knows about none of them.

Targets the focused element rather than a ref, because refs live in the MCP server’s state and a separate CLI process cannot see them. Focus the field first with a ref-based click over MCP, or by tabbing to it.

Functions§

run