AgentToolRow shows that the agent did something: read a document, searched the web, wrote a file, delegated to a child. Closed, it is two lines. Open, it shows exactly what went in and what came out.
Kind: named component.
Defined in agents.contract lines 289 to 361.
Used by
Where | How |
|---|---|
Agent session ( | One per transcript row of kind |
No other screen or component uses it.
-exact-secondary-background, so it follows the system.Props
Prop | Type | Effect |
|---|---|---|
|
| The tool call: |
| action | Opens a path or URL: a child session, a document, a web page |
It keeps one piece of state of its own: expanded, false at first.
Anatomy
A card: margin 4 by 16, padding 12, radius 10, -exact-secondary-background, 8 point gaps (Cards and panels).
Header button, full width, at least 44 points tall:
symbol:settings (a gear) in secondary colour.
The verb in -exact-subheadline and the status in -exact-caption1. They share a line and wrap when the verb is long.
The target in -exact-footnote, secondary colour, wrapping.
Source chip, when there is one: one word in -exact-caption1, secondary colour, saying what kind of thing was touched: "hm doc", "web", "memory", "tools", "ipfs", "activity", "attachment", "thread".
Child link, when the tool started a child conversation: the child's title (fallback "Child conversation") in footnote with a chevron, 44 points tall.
Detail, when expanded:
"Input" label, then the input as indented JSON in -exact-caption1 monospace, wrapping anywhere.
"Output" label and the output, or "Error" when the call failed. Hidden while the call is running.
"Open source", a plain button, when the call has a target to open.
Long input or output is cut at 4000 characters and ends with "… truncated".
Variants and states
State | Status text | Detail |
|---|---|---|
Running | "Running" | Input only |
Finished | "Done" | Input and "Output" |
Failed | "Failed" | Input and "Error" |
The verb is written by the app from the tool and its result: "Read", "Listed", "Fetched", "Wrote", "Saved", "Deleted", "Downloaded", "Published", or a default such as "Search", "Web search", "Execute code", "Delegate", "Browser". The full table is in Agents: providers, models and tool summaries.
Rules for use
One row per tool call. Calls that only update the plan or status are not shown as rows; they appear on the AgentRunCard.
Keep it collapsed by default. The transcript is for reading the conversation.
Use AgentContextRow for things the agent received, not things it did.
Why it looks this way
Work looks different from speech. A squared grey card with a gear cannot be mistaken for a bubble with an 18 point radius. DESIGN.md asks for "compact disclosure rows (symbol + tool name + status)".
A human verb, then proof. The closed row reads like a sentence, "Read Hypermedia Schemas", and the open row shows the raw call. This serves both a quick reader and someone checking what the agent really did (Honest state).
Status is text, not colour. "Running", "Done" and "Failed" are words in the label colour, so the state does not depend on telling hues apart (Accessibility). Inferred from the absence of any colour on the status.
Left aligned. An earlier build centred the header text (visible in final/ios-agent-session-light.png). The contract now sets text-align="start", and the agents3 screenshots show the fix.
User stories
This page helps deliver these stories. Each story lists this page in its Trace, so the link holds in both directions (traceability).
US-AGENT-06 See what the agent is doing: Tool cards: verb, target, status, chip, expandable input and output
US-AGENT-10 Open documents and links an agent refers to: Source chip, Open source and the child conversation row
Related
Parent: Agents components. Siblings: AgentChildRow, AgentRunCard.
Visual language: Symbols and icons, Typography, Light and dark.
Primitives: button, text, image and symbols.
Implementation: Agents: chat rows and run cards, Agents: screens and components.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime