agentskit.js
UI + hooks

ToolCallView

Render a tool invocation — name, args, result, status. Works for all tools.

Shows one tool call's lifecycle: pendingrunningdone | error. Emits data-ak-tool-call with data-ak-status.

Props

PropTypeDefault
toolCallToolCall
collapsedbooleanfalse
renderArgs(args) => ReactNodeJSON view
renderResult(result) => ReactNodeJSON view

ToolCall shape

type ToolCall = {
  id: string
  name: string
  args: unknown
  status: 'pending' | 'running' | 'done' | 'error'
  result?: unknown
  error?: string
}

Per-framework

FrameworkImport
Reactimport { ToolCallView } from '@agentskit/react'
Vueimport { ToolCallView } from '@agentskit/vue'
Svelteimport ToolCallView from '@agentskit/svelte/ToolCallView.svelte'
Solidimport { ToolCallView } from '@agentskit/solid'
React Nativeimport { ToolCallView } from '@agentskit/react-native'
Angular<ak-tool-call-view [toolCall]="tc">
Inkimport { ToolCallView } from '@agentskit/ink'
✎ Edit this page on GitHub·Found a problem? Open an issue →·How to contribute →

On this page