mcp: tool.InputSchema and tool.OutputSchema validation (SEP-2106) (#1009)

Fixes #990
This commit is contained in:
Guglielmo Colombo 2026-06-16 13:55:47 +02:00 • committed by GitHub
commit 79e1a13dcf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -234,7 +234,9 @@ type ToolResultContent struct {
ToolUseID string
// Content holds the unstructured result of the tool call.
Content []Content
// StructuredContent holds an optional structured result as a JSON object.
// StructuredContent holds an optional structured result. Per SEP-2106, it
// may be any valid JSON value (object, array, or primitive) conforming to
// the tool's output schema.
StructuredContent any
// IsError indicates whether the tool call ended in an error.
IsError bool