Repository navigation
docs: publish claude toolset integration guide - #3126
Conversation
# 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 - Add TypeScript and Python installation, browser-task examples, session cleanup, Browserbase configuration, and domain-filtering limitations. - Link the guide from navigation and integration overviews, distinguishing its native toolset from the shared MCP tool contract. # 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. - Python snippet syntax and `git diff --check`: passed. - Live Claude execution and published package exports have not been verified; the registry releases were placeholders when checked. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Adds a Claude Toolset integration guide to the Stagehand v4 docs, covering setup for the published `stagehand-claude-sdk` packages in TypeScript and Python. - Documents installation, local Chrome and Browserbase launch modes, domain restrictions, and session cleanup. - Links the guide from navigation and both integration overviews, clarifying that Claude Toolset uses a native browser toolset rather than the shared MCP tool contract. <sup>Written for commit 82243b2. Summary will update on new commits.</sup> <a href="https://cubic.dev/pr/browserbase/stagehand/pull/3122?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/3122?returnTo=https%3A%2F%2Fgithub.com%2Fbrowserbase%2Fstagehand%2Fpull%2F3122&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> (cherry picked from commit fdd1795)
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
|
There was a problem hiding this comment.
All reported issues were addressed across 4 files
Architecture diagram
sequenceDiagram
participant Dev as Developer
participant DocsNav as Docs Navigation
participant ClaudeGuide as Claude Toolset Guide
participant ToolsetRepo as Claude Toolset Repo
participant StagehandSDK as stagehand-claude-sdk
participant AnthropicSDK as Anthropic SDK
participant Chrome as Local Chrome
participant Browserbase as Browserbase Session
Note over Dev,DocsNav: Documentation Access Flow
Dev->>DocsNav: Browse integrations overview
DocsNav->>ClaudeGuide: Select Claude Toolset card
DocsNav->>ClaudeGuide: Access via Agent Frameworks nav
Note over Dev,StagehandSDK: Setup and Configuration
Dev->>ToolsetRepo: Clone repository
Dev->>StagehandSDK: Install package (npm/PyPI)
Dev->>AnthropicSDK: Install SDK with browser toolset
Note over Dev,Browserbase: Runtime Browser Task Flow
Dev->>StagehandSDK: StagehandBrowser.launch()
alt Local Mode
StagehandSDK->>Chrome: Launch headless Chrome
Chrome-->>StagehandSDK: Browser instance ready
else Browserbase Mode
StagehandSDK->>Browserbase: StagehandBrowser.browserbase()
Browserbase-->>StagehandSDK: Remote browser session
end
StagehandSDK-->>Dev: Browser instance
Dev->>AnthropicSDK: Create toolRunner with browser tool
AnthropicSDK->>AnthropicSDK: Run model tool loop
AnthropicSDK->>StagehandSDK: Dispatch browser tool calls
StagehandSDK->>Chrome: Navigate, screenshot, interact
Chrome-->>StagehandSDK: Page state and results
StagehandSDK-->>AnthropicSDK: Tool results
AnthropicSDK-->>Dev: Stream model messages
Note over Dev,StagehandSDK: Session Cleanup
Dev->>StagehandSDK: Close browser instance
StagehandSDK->>Chrome: Terminate browser
StagehandSDK->>Browserbase: End session
Note over StagehandSDK,Chrome: Domain Restrictions
StagehandSDK->>StagehandSDK: Enforce allowedDomains/blockedDomains
Note over StagehandSDK: WebSocket connections not restricted
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
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
fdd179582b6b1f9e43c3d18ad27917cf2e66631e, including package imports, navigation links, and the removal of the beta namespace.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.Summary by cubic
Publishes the Claude Toolset integration guide on the docs-production branch by cherry-picking the docs from the
claude-cua-toolsetdocs PR.stagehand-claude-sdksetup in TypeScript and Python, including local Chrome and Browserbase launch modes, domain restrictions, and session cleanup.Written for commit cd312bf. Summary will update on new commits.