Skip to content

Tool Call Row ​

One line of agent progress: a 16px tool icon, a label that shimmers while the work streams and settles when done, and an optional expandable chevron that reveals sub-steps under a thread line.

Examples ​

States & expandable ​

moonbit
@sumi.tool_call_row(icon=@sumi.icon_image(), label="(0/1) Image generating…")
@sumi.tool_call_row(icon=@sumi.icon_image(), state=@sumi.Done,
  label="(1/1) Image generation completed")
@sumi.tool_call_row(
  icon=@sumi.icon_adjust(), label="2 commands executed",
  expandable=true, expanded=e, on_toggle=set_e.map(v => _ => !v),
  steps=["List file directories", "Search for related content"],
)

API ​

tool_call_row ​

NameTypeDefaultDescription
label *String—Status text; counts and failure notes are part of the copy
iconHtml—16px tool glyph (omit for icon-less rows)
stateToolCallStateDoingDoing shimmers, Done settles to static tertiary
expandableBoolfalseAdds a right/down chevron and enables steps
expandedBoolfalseControlled expand state
on_toggleCmd—Whole-row click command
stepsArray[String][]Sub-step lines shown when expanded
truncateBooltrueSingle-line ellipsis (default) or wrapping
aria_labelString—
idString—Element id
classString—Extra class names
attrsAttrs—Extra HTML attributes
styleArray[String][]Extra inline styles

ToolCallState ​

VariantDescription
DoingLabel keeps shimmering while work streams
DoneStatic tertiary label

* required (labelled) parameter — everything else is optional.