Skip to content

docs: add claude toolset integration guide - #3122

Merged
Kylejeong2 merged 3 commits into
mainfrom
kylejeong/claude-toolset-docs
Oct 7, 2026
Merged

Kylejeong2 merged 3 commits into
mainfrom
kylejeong/claude-toolset-docs

Conversation

@Kylejeong2

@Kylejeong2 Kylejeong2 commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

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.

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.

Written for commit 82243b2. Summary will update on new commits.

Review in cubic Turn on auto-fix

@changeset-bot

changeset-bot Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 82243b2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@Kylejeong2
Kylejeong2 marked this pull request as ready for review October 6, 2026 23:55
@Kylejeong2
Kylejeong2 requested a review from a team as a code owner October 6, 2026 23:55

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Loading

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Kylejeong2 and others added 2 commits October 6, 2026 17:13
…set-quickstart.mdx

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
@Kylejeong2
Kylejeong2 merged commit fdd1795 into main Oct 7, 2026
10 checks passed
@Kylejeong2
Kylejeong2 deleted the kylejeong/claude-toolset-docs branch October 7, 2026 00:40
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants