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
| Attribute | Description | Type | Default |
|---|---|---|---|
args | Arguments text or JSON (rendered as text) | string | — |
collapsible | Whether the body can collapse; false forces it open | string | true |
name | Tool name | string | — |
open | Start expanded | boolean | — |
result | Result text or JSON (rendered as text) | string | — |
status | Status: running / success / error | string | — |
summary | One-line summary | string | — |
Events
| Event | Description |
|---|---|
oas-toggle | Dispatched on expand/collapse, detail: |
Slots
| Name | Description |
|---|---|
icon | Tool icon |