Skip to main content
ToolCall renders all eight input, approval, execution, output, failure, and denial states of an agent tool invocation, tinted through the shared status vocabulary.
Use argsText for partial JSON while input streams; it overrides args, and resultText similarly overrides result. Object rendering is BigInt- and cyclic-safe via the exported formatJsonSafe helper.

Lifecycle states

The default compact layout discloses details via a native button; expanded always mounts details and ignores disclosure props. Inject approve/deny controls through approvalSlot, which renders only during approval-requested.