docs: add Anthropic Managed Agents browser guide - #2199
Merged
Conversation
Add a cookbook guide showing how to equip Anthropic Managed Agents with the browse CLI for browser, search, and fetch tooling. Includes the markdown guide and accompanying screenshots in guides/anthropic-managed-agents/. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Contributor
There was a problem hiding this comment.
No issues found across 6 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Architecture diagram
sequenceDiagram
participant User as User (Developer)
participant CLI as ant CLI
participant AMA as Anthropic Managed Agents
participant Env as Environment
participant Browse as browse CLI
participant BB as Browserbase Cloud
participant Web as External Websites
Note over User,Web: Managed Agent Browser Flow
User->>CLI: ant beta:sessions create --agent --environment-id
CLI->>AMA: Create session with environment config
AMA->>Env: Load environment (npm packages, networking rules)
Note over Env,Browse: Environment includes browse as default npm package
AMA->>AMA: Execute agent system prompt
Note over AMA: System prompt instructs agent to use browse CLI
AMA->>Env: Run browse --help (progressive disclosure)
Env->>Browse: Execute browse shell command
Browse-->>Env: Return command interface docs
Env-->>AMA: CLI help output
AMA->>Env: browse launch --browser remote
Env->>Browse: Start browser session
alt Local Chromium
Browse->>Browse: Launch headless Chromium
else CDP Connection
Browse->>Web: Connect via CDP endpoint
else Browserbase Cloud (default for cloud agents)
Env->>Env: Read BROWSERBASE_API_KEY from credential vault
alt Credential vault configured
Browse->>BB: Connect to remote browser session
BB-->>Browse: Session URL / debug panel
BB->>Web: Navigate to target URL
Web-->>BB: Page content
BB-->>Browse: Page state
else No API key
Browse-->>Env: Error: missing BROWSERBASE_API_KEY
Env-->>AMA: Connection failed
end
end
Browse-->>Env: Browser session ready
Env-->>AMA: Session established
Note over AMA,Browse: Agent uses browse commands (click, network, etc.)
AMA->>Browse: browse click --selector ".button"
Browse->>BB: Execute click
BB-->>Browse: Click result
Browse-->>AMA: Success
AMA->>Browse: browse network --wait complete
Browse->>BB: Monitor network
BB-->>Browse: Page loaded
Browse-->>AMA: Page state
AMA->>Browse: browse screenshot
Browse->>BB: Capture screenshot
BB-->>Browse: Screenshot data
Browse-->>AMA: Visual result
Note over User,BB: Optional: User debugs live session
User->>BB: View session in browserbase.com/sessions
BB-->>User: Live browser view
Note over AMA,Web: Networking rules apply
alt Unrestricted networking
Browse->>Web: Full internet access
else Limited networking
Browse->>Web: Only allowed hosts (e.g., *.browserbase.com)
end
alt E2E Testing
AMA->>Browse: browse evaluate --script "checkA11y()"
Browse-->>AMA: Accessibility violations
else Research
AMA->>Browse: browse search "query"
Browse-->>AMA: Search results
else Web Automation
AMA->>Browse: browse fill form + submit
Browse-->>AMA: Form submitted
end
shrey150
approved these changes
Jun 5, 2026
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
felipeofdev-ai
pushed a commit
to felipeofdev-ai/stagehand
that referenced
this pull request
Aug 4, 2026
## Summary Adds a cookbook guide showing how to equip Anthropic Managed Agents with the `browse` CLI for browser, search, and fetch tooling to navigate the web. The guide walks through: 1. Creating an Environment with `browse` as a default npm package 2. Setting up a Credential vault for the Browserbase API key 3. Designing the agent system prompt 4. Example browser-agent use cases (E2E testing, research, web automation) ## Contents New folder `guides/anthropic-managed-agents/`: - `README.md` — the guide - 5 accompanying screenshots (co-located, referenced with relative paths) 🤖 Generated with [Claude Code](https://claude.com/claude-code) ---------
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a cookbook guide showing how to equip Anthropic Managed Agents with the
browseCLI for browser, search, and fetch tooling to navigate the web.The guide walks through:
browseas a default npm packageContents
New folder
guides/anthropic-managed-agents/:README.md— the guide🤖 Generated with Claude Code