Parse a tool-finished output payload into the tool's return value.
Wire events often wrap structured tool results in a ToolMessage-shaped
object ({ type: "tool", content: "..." }). This unwraps that envelope,
JSON-decodes string content when possible, and leaves plain strings as-is.
Returns null when a ToolMessage envelope is present but its content
cannot be normalised.
parseToolOutput(value: unknown): unknown| Name | Type | Description |
|---|---|---|
value* | unknown |