Skip to content

FunctionCallVisualizer

stablev1.0.0

Renders AI tool call execution: function name, input parameters (syntax-highlighted JSON with line numbers), status badge (pending/running/done/error), output preview, execution duration, and call ID. Collapsible detail panel.

ai-agentInteractive/Storybook ↗
import { FunctionCallVisualizer } from "@danagraph/design-system"
Loading demo…

Props

namerequired
Type stringDefault —

Tool / function name.

inputrequired
Type Record<string, unknown>Default —

Input parameters as a JSON-serializable object.

statusrequired
Type "pending" | "running" | "done" | "error"Default —

Current execution status.

output
Type unknownDefault —

Output value, available when status is done.

error
Type stringDefault —

Error message, available when status is error.

durationMs
Type numberDefault —

Execution duration in milliseconds.

callId
Type stringDefault —

Call ID for traceability (shown in header).

defaultCollapsed
Type booleanDefault false

Start the detail panel collapsed.

semantictypebordersurfaceoutcome
Design Rationale

This component was designed to express:

Explore Related

Was this helpful?