Skip to content

[Docs] Integrations docs - #2647

Draft
akeimach wants to merge 1 commit into
v4-spikefrom
alyssamaruyama/stg-2568-custom-llm-client-add-integration-examples-tests-for-popular
Draft

[Docs] Integrations docs#2647
akeimach wants to merge 1 commit into
v4-spikefrom
alyssamaruyama/stg-2568-custom-llm-client-add-integration-examples-tests-for-popular

Conversation

@akeimach

@akeimach akeimach commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

why

what changed

test plan


Summary by cubic

Adds a new “Code mode” integration guide for Stagehand v4, with copy‑pasteable examples for MCP and non‑MCP agent SDKs. Adds an “Integrations” nav group so the page is easy to find. Supports STG-2568 by delivering runnable docs examples.

  • New Features
    • New page: v4 Integrations → Code mode, explaining the code_execute tool and that the agent framework is the orchestrator.
    • MCP setup: stdio server command to load the tool; note to keep one session open so the browser persists.
    • Non‑MCP setup: TypeScript example using StagehandCodeExecutor and stagehandCodeConfigFromEnv, with execute(), metrics(), and clean shutdown.
    • Config: environment‑based selection of local or browserbase, provider keys, and model overrides.
    • Behavior: snippet API, return shape, limits, persistence between calls, abort semantics, and security caveats.
    • v4 guidance: include STAGEHAND_CODEMODE_SKILL/STAGEHAND_CODEMODE_REFERENCE to keep models on the supported API.
    • Notes that @browserbasehq/stagehand-integrations is private while the API settles.

Written for commit e379a84. Summary will update on new commits.

Review in cubic

@changeset-bot

changeset-bot Bot commented Aug 8, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: e379a84

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

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.

1 participant