Agent Browser Plugin
The Agent Browser plugin adds a browser automation skill backed by the agent-browser CLI.
Install
Section titled “Install”Install the plugin package alongside @sentry/junior:
pnpm add @sentry/junior @sentry/junior-agent-browserRuntime setup
Section titled “Runtime setup”List the plugin in juniorNitro({ pluginPackages: [...] }):
juniorNitro({ pluginPackages: ["@sentry/junior-agent-browser"],});Configure environment variables
Section titled “Configure environment variables”No environment variables are required for this plugin.
Plugin-specific setup
Section titled “Plugin-specific setup”This plugin provisions browser automation as part of the sandbox snapshot:
- Plugin manifest:
agent-browser - Skill:
/agent-browser - Runtime dependency:
agent-browsernpm package installed in the snapshot - Runtime postinstall:
agent-browser installto provision browser binaries in the snapshot
Use the skill in a thread:
/agent-browser Open https://example.com, capture a screenshot, and summarize what is on the page.Verify
Section titled “Verify”- Run
/agent-browserwith a simple open-and-snapshot request. - Confirm the turn can execute
agent-browsercommands successfully. - Confirm the output includes concrete page evidence such as the final URL or screenshot references.
Failure modes
Section titled “Failure modes”command not found: agent-browser: the runtime dependency install did not complete. Retry the turn and check sandbox snapshot setup logs.- Browser launch fails during the turn: browser binaries were not provisioned successfully. Rebuild the snapshot so
agent-browser installruns again. - Stale element references like
@e*: the DOM changed after the snapshot was taken. Run a freshsnapshot -iafter navigation or UI updates. - Page appears incomplete: the page had not finished loading before the next action. Wait explicitly with
agent-browser wait --load networkidlebefore interacting.
Next step
Section titled “Next step”Continue with Plugins to build provider-specific extensions or review Security Hardening for production controls.