Skip to content

WebMCP: Implement tool title#60179

Merged
chromium-wpt-export-bot merged 1 commit into
masterfrom
chromium-export-cl-7742044
May 27, 2026
Merged

WebMCP: Implement tool title#60179
chromium-wpt-export-bot merged 1 commit into
masterfrom
chromium-export-cl-7742044

Conversation

@chromium-wpt-export-bot
Copy link
Copy Markdown
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented May 26, 2026

Per webmachinelearning/webmcp#152, this CL
implements the title property for registered tools, consistent with
MCP's tool definition 1. This is done by adding a new title property
to the ModelContextTool dictionary for imperative tools, and a new
tooltitle attribute for declarative tools.

A subsequent spec PR will be made to spec the getTools() API and the
reflect the fact that RegisteredTool#title is always non-undefined,
and is the empty string when not provided on registration time, per
some discussion we had about the right API shape.

R=masonf

Bug: 489045948
Change-Id: If848ba85ba1b4aeaa39834eca11ba91108e493c0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7742044
Commit-Queue: Dominic Farolino <dom@chromium.org>
Reviewed-by: Mason Freed <masonf@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1636305}

Per webmachinelearning/webmcp#152, this CL
implements the `title` property for registered tools, consistent with
MCP's tool definition [1]. This is done by adding a new `title` property
to the `ModelContextTool` dictionary for imperative tools, and a new
`tooltitle` attribute for declarative tools.

A subsequent spec PR will be made to spec the `getTools()` API and the
reflect the fact that `RegisteredTool#title` is always non-undefined,
and is the empty string when not provided on registration time, per
some discussion we had about the right API shape.

[1]:
https://modelcontextprotocol.io/specification/2025-11-25/server/tools#tool

R=masonf

Bug: 489045948
Change-Id: If848ba85ba1b4aeaa39834eca11ba91108e493c0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7742044
Commit-Queue: Dominic Farolino <dom@chromium.org>
Reviewed-by: Mason Freed <masonf@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1636305}
Copy link
Copy Markdown
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

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

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot chromium-wpt-export-bot merged commit 1c47dcf into master May 27, 2026
27 checks passed
@chromium-wpt-export-bot chromium-wpt-export-bot deleted the chromium-export-cl-7742044 branch May 27, 2026 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants