Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Tool Receipt

ProNew

Unfold an itemized tool invocation with its arguments, return value and execution time.

Installation

pnpm dlx shadcn@latest add @viewport/tool-receipt

First time? Add the @viewport registry to components.json. Setup takes one minute.

Usage

The code behind the preview above comes with Truffle Pro.

Props

PropTypeDefault
tool*string

Invoked tool name.

—
runId*string

Correlation identifier from the tool response.

—
elapsedMs*number

Measured execution time in milliseconds.

—
input*Record<string, unknown>

JSON-serializable arguments passed to the tool.

—
output*string

Formatted result to show in the expanded receipt.

—
status"success" | "error"

Outcome reported by the tool.

"success"

Accessibility

  • A disclosure button reports expanded state. Hidden details leave the keyboard and accessibility trees.