Repository navigation
feat(webmcp): support consequential tool annotations - #2917
Closed
antonvishal wants to merge 14 commits into
Closed
antonvishal wants to merge 14 commits into
antonvishal wants to merge 14 commits into
Conversation
🦋 Changeset detectedLatest commit: eac41fe The changes in this PR will be included in the next version bump. This PR includes changesets to release 24 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
|
This PR is from an external contributor and must be approved by a stagehand team member with write access before CI can run. |
5 tasks done
antonvishal
force-pushed
the
webmcp-consequential
branch
from
September 19, 2026 06:12
9dfa8aa to
fc29d33
Compare
# Conflicts: # packages/sdk-go/internal/extensionassets/stagehand-extension.zip
# Conflicts: # packages/sdk-go/internal/extensionassets/stagehand-extension.zip # pnpm-lock.yaml
…2-pr-2917 # Conflicts: # packages/sdk-go/internal/extensionassets/stagehand-extension.zip # pnpm-lock.yaml
# Conflicts: # packages/sdk-go/internal/extensionassets/stagehand-extension.zip
antonvishal
force-pushed
the
webmcp-consequential
branch
from
October 6, 2026 17:48
e129679 to
d10b437
Compare
# Conflicts: # packages/sdk-go/internal/extensionassets/stagehand-extension.zip
# Conflicts: # packages/sdk-go/internal/extensionassets/stagehand-extension.zip
antonvishal
force-pushed
the
webmcp-consequential
branch
from
October 13, 2026 19:38
ca7d7e7 to
d35b0b6
Compare
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.
why
WebMCP added
consequentialHintfor tools that may perform high-stakes actions. Stagehand now exposes this signal so applications and agent adapters can request user approval before invoking those tools.Reference: https://developer.chrome.com/docs/ai/webmcp/imperative-api#tool_annotations_optional, https://chromedevtools.github.io/devtools-protocol/tot/WebMCP/
what changed
consequentialsupport across the extension, protocol, and TypeScript, Python, and Go SDKs.All tests are passing:
Summary by cubic
Adds support for WebMCP's
consequentialtool annotation across the protocol, the extension, and the TypeScript, Python, and Go SDKs. The signal, calledconsequentialHintby WebMCP and exposed asconsequential, lets applications request user approval before invoking high-stakes tools.consequentialfield to tool annotation schemas and all SDKs, preservingfalseand omitted values intact.invoke()ontrue. A missing orfalsevalue does not prove a tool is safe.Written for commit eac41fe. Summary will update on new commits.