Skip to content

Add tool result _meta in tool response and access in the ui#677

Open
zekebergida wants to merge 1 commit into
modelcontextprotocol:mainfrom
zekebergida:toolOutput-meta-example
Open

Add tool result _meta in tool response and access in the ui#677
zekebergida wants to merge 1 commit into
modelcontextprotocol:mainfrom
zekebergida:toolOutput-meta-example

Conversation

@zekebergida
Copy link
Copy Markdown

Include _meta in tool output and access it from the ui

Motivation and Context

While the docs specify that tooloutput _meta is forwarded to the ui and hidden from the model some providers including the basic host in this repo fail to make the _meta available to the ui. This PR will help demonstrate the functionality and can help others troubleshoot this.

How Has This Been Tested?

Claude.ai does forward tool output meta to the ui however chatgpt does not and there are ongoing discussions in developer communities for how to troubleshoot this

Breaking Changes

No

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

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