Skip to content

ToolCall ​

Tool-call card: name, summary, status, arguments and result; collapsed by default and toggled from the header. The component only renders host data; it does not execute tools, parse functions or inject HTML.

Basic Usage ​

Running / success / error; click the header to toggle oas-toggle

State Matrix ​

Three calls of the same tool: running / completed / failed; all cards start expanded, click a header to collapse or expand (oas-toggle)

Waiting for interaction: click any card header to collapse or expand

API ​

oas-tool-call ​

Attributes ​

AttributeDescriptionTypeDefault
argsArguments text or JSON (rendered as text)string—
collapsibleWhether the body can collapse; false forces it openstringtrue
nameTool namestring—
openStart expandedboolean—
resultResult text or JSON (rendered as text)string—
statusStatus: running / success / errorstring—
summaryOne-line summarystring—

Events ​

EventDescription
oas-toggleDispatched on expand/collapse, detail:

Slots ​

NameDescription
iconTool icon

Released under the MIT OR Apache-2.0 License.