Skip to content

Tool Call List

Reasoning component

<loquix-tool-call-list> groups the tool calls belonging to one turn behind a single header. The header summarizes how many ran, and the whole group collapses in one click, so a turn with six lookups does not flood the transcript.

loquix-tool-call-listslot-based groupingcounts its own children
Parallel tool calls Live component
import '@loquix/core/define/define-tool-call-list';
import '@loquix/core/define/define-tool-call';
<loquix-tool-call-list>
<loquix-tool-call name="search_documents" status="success"></loquix-tool-call>
<loquix-tool-call name="lookup_order" status="success"></loquix-tool-call>
</loquix-tool-call-list>

The header text is generated from the number of children — “Used 2 tools” — and localized. Set summary to replace it with your own wording.

const group = document.querySelector('loquix-tool-call-list');
group.summary = 'Checked pricing across 3 regions';
group.addEventListener('loquix-tool-group-toggle', (event) => {
trackDisclosure('tool-group', event.detail.open);
});
Property Attribute Type Default Description
summary summary string — Explicit header text. Replaces the localized “Used N tools” count.
defaultCollapsed default-collapsed boolean false Initial collapsed state. User toggles win from then on.
Event Detail Description
loquix-tool-group-toggle { open } Fired when the user expands or collapses the group.

The default slot takes Tool Call children. Anything else renders but is not counted in the summary.

Part Purpose
container Outer wrapper.
header Clickable header button.
summary Summary text.
chevron Expand and collapse indicator.
items Container holding the slotted children.