Docs
AgentsPro

Tool CallsNew

The tools an agent used in one reply, folded to "Used 4 tools · 3.2s" and opening to each call's arguments and result.

$npx swiftpieces add ToolCallsBlock

Needs a SwiftPieces Pro license: npx swiftpieces login first.

Open in the Pro library View pricing Live preview in every Pro style, and its source with SwiftPieces Pro.
ProPattern · AgentsiOS 17+Themed by Pro's design system
Type
ToolCallsBlock
Inside
Summary row, A row per call, Arguments and results, Failed calls with Retry
Install, with a Pro license
npx swiftpieces add ToolCallsBlock
Depends on
Pro's Design System, which installs with it

A small, inline record for the top of an assistant message. Folded it is one quiet row; opened, each call shows its symbol, name, argument summary and duration or status, and opens to its arguments and result as key and value pairs or monospaced JSON with Copy. It opens itself while calls run and folds once they finish.

Its SwiftUI source comes with SwiftPieces Pro: Tool Calls in the Pro library.

All patterns →
SwiftPiecesPro

Build the whole app with one library.

Production-ready screens, whole flows, complete app templates, a Build Kit your agent follows and Pro remixing.

54 screens · 46 patterns · 48 flows · 12 templates · 31 Build Kit skills

Explore Pro