Skip to content

Add opaque _meta passthrough to SDK tool definitions#1864

Draft
belaltaher8 wants to merge 2 commits into
github:mainfrom
belaltaher8:belaltaher8/tool-meta-passthrough
Draft

Add opaque _meta passthrough to SDK tool definitions#1864
belaltaher8 wants to merge 2 commits into
github:mainfrom
belaltaher8:belaltaher8/tool-meta-passthrough

Conversation

@belaltaher8

Copy link
Copy Markdown

Add an optional _meta bag to the Tool definition (and defineTool) and forward it verbatim over the session.create/resume RPC. This lets hosts attach namespaced, opaque metadata to tools without expanding the typed public contract; unknown keys are round-tripped untouched.

belaltaher8 and others added 2 commits June 27, 2026 23:37
Add an optional `_meta` bag to the `Tool` definition (and `defineTool`)
and forward it verbatim over the session.create/resume RPC. This lets
hosts attach namespaced, opaque metadata to tools without expanding the
typed public contract; unknown keys are round-tripped untouched.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Assert the opaque `_meta` bag on a tool definition is forwarded verbatim
in session.create and session.resume payloads, and omitted when unset.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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