Skip to main content

Tool Call

Show a call a model made to a tool, running, done or failed, opening to its input & output, built on Base UI.

View as Markdown

Installation

Component API

PropTypeDefaultDescription
namestring-The tool's name, such as search_files.
The tool's name, such as search_files.
summarystring-What it was asked, in a few words, beside the name.
What it was asked, in a few words, beside the name.
staterunning | done | faileddoneWhere it is: running, done or failed.
Where it is: running, done or failed.
inputstring-What it was given, shown when the card is open.
What it was given, shown when the card is open.
outputstring-What it gave back, or the error, shown when the card is open.
What it gave back, or the error, shown when the card is open.
iconReactNode-A glyph for the tool.
A glyph for the tool.
defaultOpenbooleanfalseOpen on its input and output at the start.
Open on its input and output at the start.
shapenone | rounded | pillrounded
classNamestring-
focusboolean | stringtrue