Skip to content

Conversation

@bhosmer-ant
Copy link
Contributor

@bhosmer-ant bhosmer-ant commented May 15, 2025

Summary

  • Relaxes the CallToolUnstructuredResult schema to allow optional structured content
  • Changes the TypeScript type from never to { [key: string]: unknown } (optional)

Changes

This PR modifies the CallToolUnstructuredResult schema to allow tools to optionally include structured content alongside unstructured content. This provides greater flexibility for tool implementations while maintaining backwards compatibility.

Test plan

  • Ensure schema validation passes for both cases

🤖 Generated with Claude Code

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.

2 participants