feat(webmcp): support consequential tool annotations - #2917
Open
antonvishal wants to merge 1 commit into
Open
Conversation
🦋 Changeset detectedLatest commit: 19d3970 The changes in this PR will be included in the next version bump. This PR includes changesets to release 19 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. |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
5 tasks
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.test plan
All tests are passing:
Summary by cubic
Adds support for WebMCP's
consequentialtool annotation across the protocol, extension, and all SDKs. This exposes theconsequentialHintsignal so applications can request user approval before invoking high-stakes tools.consequentialfield to the tool annotation schema and all SDKs (TypeScript, Python, Go).devtools-protocolto0.0.1694333and adds it tominimumReleaseAgeExcludetemporarily to satisfy pnpm's supply-chain policy.Written for commit 19d3970. Summary will update on new commits.