Click a row to expand it
Click a row for its arguments, output and raw JSON
One row per tool call: category icon, verb, target and status, with details that open in place.
Rows appear as the agent calls tools. A running row shimmers and its verb changes tense when it ends. Click a row for arguments, output, diagnostics and the raw JSON. A row that needs you reads Waiting for you.
Options for the assembled component.
tools*ToolView[]Call id, name, arguments, live slot and result of each call.
streaming*booleanFades new rows in while the message is being written.
RenderersContext{ tools?: ToolRenderer[] }First renderer that returns a presentation wins. Unknown tools use the generic row.
ToolOpenContext{ isOpen, toggle }Open state by call id, kept outside so it survives a remount.
_pi-ui/blocks/tool-steps.tsxThe list, the row shell, status rules and the generic detail view.
_pi-ui/tools/index.tsread, write, edit, bash, code mode, MCP, agent and ask. Each returns a category, verbs, a summary and a body.
_pi-ui/tools/code-lines.tsxNumbered code with light highlighting, and a path with the folder dimmed.
_shared/ui/diff-view.tsxPatch lines and the added and removed counts.
_pi-ui/raw-inspector.tsxShows and copies the untouched arguments, slot and result.
_pi-ui/renderers.tsRenderers, which rows are open, and which calls wait for the user.
Ported from the agent-builder Pi chat components.
Click a row to expand it
Click a row for its arguments, output and raw JSON