Skip to content
↑↓ to navigate↵ to openesc to close

Menu

Tool Result

Terminal Output

ToolResult.vue
Running

Request Result

ToolResult.vue
Preparing request…
Running

API Reference

ToolResultOutput

language?
string
Defaultbash
class?
string
Default—
code?
string
Default—

ToolResult

tool
string
Default—
title
string
Default—
status?
ToolResultStatus
Defaultrunning
kind?
ToolResultKind
Defaultcustom
meta?
string
Default—
#icon?
slot
Default—
v-model:open?
boolean
Defaultundefined
defaultOpen?
boolean
Defaulttrue
collapseOnComplete?
boolean
Defaulttrue
maxHeight?
number
Default220
copyText?
string
Default—
onCopy?
() => void | Promise<void>

Overrides the built-in clipboard action.

Default—
@retry?
() => void
Default—
labels?
Labels

Override any built-in string.

Default—
class?
string
Default—
contentClassName?
string
Default—
@open-change?
(value: boolean) => void
Default—
#default?
slot
Default—

Install

Add it with your package manager, or copy the source manually.

Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide

bunx --bun shadcn-vue@latest add @beui-vue/tool-result

Import the shared styles once in your application.

TSUsage
import ToolResult from '@/components/beui/agents/ToolResult.vue'
import '@/components/beui/styles.css'

Composition

Use the output primitive for terminal text, request details, generated code, or another structured result.

ToolResult
└── ToolResultOutput

Note: Tool Approval collects permission before the execution begins. Code Block renders highlighted code returned by a tool. Agent Activity summarizes the tool invocation within a longer run.

How it works

A tool result is evidence from an execution, not another chat bubble. It should connect a compact run summary to the output needed for inspection, recovery, or reuse.

Also on React Native. Output that streams in, then folds into a result.(opens in a new tab)

Updated