sincecutoff.com
← all changes

agent-browser adds keyboard input, color scheme preference, and runtime fixes

Introduced 2026-02-23 · score 0.95

HOW TO USE IT

When an element is already focused, use `keyboard` to type, insert text, or press keys without a selector; set a persistent color scheme with `--color-scheme` or `AGENT_BROWSER_COLOR_SCHEME`. For the listed IPC, CDP, state-load, and annotation-warning fixes, use v0.14.0; its default timeout is 25 seconds and can be set with `AGENT_BROWSER_DEFAULT_TIMEOUT`.

agent-browser keyboard type "Hello world"
agent-browser keyboard inserttext "pasted text"
agent-browser --color-scheme dark open https://example.com

WHY THIS HELPS

When automating a page where an element is already focused, send keystrokes or choose a persistent browser color scheme, or diagnose IPC, CDP reconnection, state-load, timeout, or annotation-warning behavior.

REQUIREMENTS AND LIMITATIONS

  • Version: v0.14.0
  • keyboard type <text> (required): Types the provided text with real keystrokes at the currently focused element; no selector is needed.
  • keyboard inserttext <text> (required): Inserts the provided text at the currently focused element; no selector is needed.
  • keyboard press <key>: Release note says keyboard can press shortcuts, but the v0.14.0 docs found do not specify the syntax or key argument.
  • --color-scheme <value>: Sets a persistent browser color-scheme preference. The release note describes dark/light; docs found do not enumerate allowed flag values.
  • AGENT_BROWSER_COLOR_SCHEME: Environment variable for persistent dark/light color-scheme preference; exact allowed values not documented in v0.14.0 docs found.
  • AGENT_BROWSER_DEFAULT_TIMEOUT: Configures the default Playwright timeout; v0.14.0 release note sets the default to 25 seconds but does not document the variable's unit or accepted syntax.
  • Prerequisite: Use agent-browser v0.14.0 or later to get the changes described in the release note.
  • The `keyboard` command acts at the currently focused element and does not need a selector.
  • The color scheme preference is persistent across browser sessions.
  • The default Playwright timeout is 25s and is configurable via `AGENT_BROWSER_DEFAULT_TIMEOUT`.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card