Skip to content

@pgege/kaboo-react


Function: ToolRow()

ToolRow(__namedParameters): Element

Defined in: src/components/ToolRow.tsx:31

Renders a single ToolCall as a collapsible row: status icon, label (the tool's name read as words when it has no label), an input summary, and — when expanded — the input and result laid out as fields and tables, never JSON. Used inside the Timeline.

Parameters

__namedParameters

tool

ToolCall

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} />;
}