Chat · Components
ToolCallDisplay
ToolCallDisplay - Inline tool call/result display Collapsible card showing tool name, arguments (as JSON), status indicator, and result/error. Color-coded by status (pending, running, success, error).Public export
typescript
import { ToolCallDisplay } from '@happyvertical/smrt-chat/svelte';- Import path
@happyvertical/smrt-chat/svelte- Props
- 4
- Props described
- 4 of 4
- Bindable state
- 0
- Callback events
- 2
- Verified release
- 0.57.40
Props
NameTypeRequiredDescription
toolCallToolCallDisplayDataYesTool call dataactionResultDataSurfaceActionResultNoData-surface action preview/apply outcome (#2904, AssistantDock). Additive: when present, the body renders a preview/applied/failed panel for the action alongside the generic tool-call rendering above; existing callers that never pass this prop see no change.onconfirmaction() => voidNoFired by the Confirm button, shown only while `actionResult.phase === 'preview' && actionResult.ok`.onrejectaction() => voidNoFired by the Reject button, shown alongside `onconfirmaction`.Bindable state
This component has no bindable public state.
Callback events
onconfirmaction() => voidonrejectaction() => void