Function: ToolRow()¶
ToolRow(
__namedParameters):Element
Defined in: components/ToolRow.tsx:29
Renders a single ToolCall as a collapsible row: status icon, label, an input summary, and — when expanded — the formatted result (a MiniTable for tabular JSON, otherwise text). Used inside the Timeline.
Parameters¶
__namedParameters¶
tool¶
Returns¶
Element
Example¶
import { ToolRow } from "@pgege/kaboo-react";
import type { ToolCall } from "@pgege/kaboo-react";
const tool: ToolCall = {
toolUseId: "t1",
toolName: "run_sql",
toolInput: { query: "select 1" },
status: "done",
};
function Example() {
return <ToolRow tool={tool} />;
}