Repository navigation
docs: add claude toolset integration guide - #3122
Merged
Merged
Conversation
|
Kylejeong2
marked this pull request as ready for review
October 6, 2026 23:55
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 4 files
Architecture diagram
sequenceDiagram
participant Dev as Developer
participant App as User Application
participant SDK as Anthropic SDK
participant Tool as StagehandBrowser (stagehand-claude-sdk)
participant Chrome as Local Chrome / Browserbase
participant Domain as Domain Filter
Note over Dev,App: Setup Phase
Dev->>Dev: export ANTHROPIC_API_KEY
Dev->>App: Install @anthropic-ai/sdk + stagehand-claude-sdk
App->>Tool: StagehandBrowser.launch({headless, allowedDomains})
Tool->>Chrome: Launch browser session
Chrome-->>Tool: Browser instance ready
Note over App,Tool: Tool Loop Execution
App->>SDK: new Anthropic().beta.messages.toolRunner({tools: [browser]})
SDK->>Tool: Register as browser tool
SDK->>Tool: Dispatch browser tool call (e.g., navigate)
Tool->>Domain: Check allowedDomains / blockedDomains
alt Domain allowed
Domain-->>Tool: Allow request
Tool->>Chrome: Perform navigation / action
Chrome-->>Tool: Page state / screenshot
Tool-->>SDK: Tool result
else Domain blocked
Domain-->>Tool: Block request
Tool-->>SDK: Error / blocked result
end
SDK-->>App: Stream model messages
App->>App: Print JSON messages
Note over App,Tool: Cleanup (Session End)
App->>Tool: browser.close() (TS) / async with browser (Python)
Tool->>Chrome: Close browser session
Chrome-->>Tool: Session closed
Note over Dev,App: Alternative: Browserbase Hosted Session
Dev->>Dev: export BROWSERBASE_API_KEY
App->>Tool: StagehandBrowser.browserbase({apiKey, allowedDomains})
Tool->>Chrome: Create Browserbase session (no local Chrome)
Chrome-->>Tool: Remote browser instance
Note over Tool,Chrome: No downloads supported in Browserbase
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
…set-quickstart.mdx Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
miguelg719
approved these changes
Oct 7, 2026
Kylejeong2
added a commit
that referenced
this pull request
Oct 7, 2026
# Summary Cherry-pick the Claude Toolset integration docs from #3122 onto `docs-production`. # Why Make the merged integration guide available on the production docs branch. # What changed - Cherry-pick `fdd179582b6b1f9e43c3d18ad27917cf2e66631e`, including package imports, navigation links, and the removal of the beta namespace. - Only the four documentation files from #3122 change. # Testing (if applicable) - `npx --yes [email protected] validate`: passed on the production-based branch. - `npx --yes [email protected] broken-links --check-anchors --check-redirects --check-snippets`: passed. - `git diff --check HEAD^ HEAD`: passed; cherry-pick applied without conflicts. - Live Claude execution was not tested. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Publishes the Claude Toolset integration guide on the docs-production branch by cherry-picking the docs from the `claude-cua-toolset` docs PR. - Adds a new guide covering `stagehand-claude-sdk` setup in TypeScript and Python, including local Chrome and Browserbase launch modes, domain restrictions, and session cleanup. - Registers the guide in navigation and both integration overviews, clarifying that Claude Toolset uses the Anthropic SDK's native browser toolset rather than the shared MCP tool contract. <sup>Written for commit cd312bf. Summary will update on new commits.</sup> <a href="https://cubic.dev/pr/browserbase/stagehand/pull/3126?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="Review in cubic" src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a> <a href="https://www.cubic.dev/action/auto-fix/pr/browserbase/stagehand/3126?returnTo=https%3A%2F%2Fgithub.com%2Fbrowserbase%2Fstagehand%2Fpull%2F3126&source=description" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img alt="Turn on auto-fix" src="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"></picture></a> <!-- End of auto-generated description by cubic. --> Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
miguelg719
added a commit
that referenced
this pull request
Oct 7, 2026
…d Python #3122 added an integration page with TypeScript and Python tabs only; the integration has no Go SDK, so the all-languages tab rule failed every PR. Add an explicit per-page language list instead of a placeholder Go tab.
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
Add a Claude Toolset integration guide to the Stagehand v4 docs.
Why
Developers need setup instructions for connecting Claude to local Chrome or Browserbase through the published Stagehand Claude SDK packages.
What changed
Testing (if applicable)
npx --yes [email protected] validate: passed.npx --yes [email protected] broken-links --check-anchors --check-redirects --check-snippets: passed.npx --yes [email protected] a11y --skip-contrast: passed.git diff --check: passed.Summary by cubic
Adds a Claude Toolset integration guide to the Stagehand v4 docs, covering setup for the published
stagehand-claude-sdkpackages in TypeScript and Python.Written for commit 82243b2. Summary will update on new commits.