ToolOutput

A formatted display for tool execution results supporting text, JSON, code, and markdown formats with auto-detection. Includes success/error/warning variants, optional headers, truncation with expand, and line numbers for code. Scrollable with configurable max height.

Agentic AIaitoolresultoutput

JSON output

json
{
"status": "success",
"data": {
"users": 42,
"active": 38
}
}

Code output

typescript
function greet(name: string) {
return `Hello, ${name}!`
}

Text output

Search completed. Found 12 results matching your query.

Error output

Error: Connection timeout after 30s

Related Components