ToolResult
The object a handler returns. text is the model-visible body; structured
is optional JSON-serializable data some clients display. When the tool
declares an output schema, structured is surfaced to the host as the
spec structuredContent object alongside the text mirror.
A handler may also return a bare string as shorthand for { text }.
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
S | unknown |