Skip to content
Talk to an engineer

Chat cards

Records list

Three to eight records of one type, each with one line of detail and a value or status. Each row opens the record in your app; a footer link leads to the rest.

KindRead-onlyAgent waitsNoMobileSame card, 44px rows

Use it when: The answer is a short list of records of one type (open tickets, deals closing soon, recent orders): 3–8 rows, each with a title, one line of detail and a value or status. Rows open the record in your app.

Use something else when: One record (entity card). The user needs to compare several columns or sort (paginated table). The user must pick one to go on (picker).

The template callsThe agent getsWhen
displayed()FUNCTION_TOOL_DISPLAYEDAs soon as the card shows. The agent goes on. Opening a row is your app’s job.

Besides its data, the template draws these as itself, with mountState(). Pick one on the preview with State.

StateWhen it shows
LoadingWhile the list loads again in place, for example after Try again or a refresh. While execute runs, the SDK shows its own loader.
Emptyexecute found no records. The card says so and the agent explains why.
Errorexecute returned the failure as data, so the agent can explain it. Try again loads the rows in place.
mountState({ root, head, title: "…", state: { kind: "error", text: "…", retry } });

The hosted action and the in-page handler below show each case. The state types are LoadingState, EmptyState and ErrorState in fs-kit.

FieldTypeNotes
titlestring
subtitle (optional)string
icon (optional)IconName
recordsListRecord[]3–8 rows. More are cut.
total (optional)numberHow many there are in all. When it’s more than the rows shown, the footer links to the rest.
noun (optional)stringWhat the rows are, plural, for “Show all 12 deals”. Default: “records”.
allHref (optional)stringWhere “Show all” goes. Without it, the link calls actions.showAll (when given).
avatarShape (optional)"square" | "circle"”square” (default) for companies and things, “circle” for people.
footnote (optional)stringShort note on the left of the footer, e.g. “Sorted by close date”.
emptyText (optional)stringShown instead of rows when records is empty.
FieldTypeNotes
idstringYour record’s id: actions.open gets the record back.
titlestring
meta (optional)stringThe one line under the title, e.g. “Acme Logistics · closes Nov 28”.
avatar (optional)stringName for the leading avatar’s initials (a person or a company). Default: the title.
avatarUrl (optional)stringLogo or photo for the leading avatar. Falls back to initials.
icon (optional)IconNameA leading icon instead of an avatar.
value (optional)string | numberTrailing value. A number is formatted with format.
format (optional)NumberFormat
status (optional)ListStatus
href (optional)stringOpens the record in your app. Without it, the row calls actions.open (when given).
FieldTypeNotes
labelstring
tone (optional)ListToneneutral (default), info, success, warning, error.
FieldTypeNotes
open() (optional)(record: ListRecord) => voidA row without href was clicked. Open the record in your app.
showAll() (optional)() => void”Show all” was clicked and there’s no allHref.

Copy the template and the shared kit into your code: agent/ui/ in an agent repo, or anywhere in your app. The template imports only ./fs-kit.js. Then wire it up from the hosted action or the in-page handler.

The hosted action needs an agent repo with one folder per action (agent/actions/<action_key>/index.ts). If your repo keeps its actions in agent/actions/index.ts, use the in-page handler: it runs the same template in your app.

All templates in machine-readable form: /ui-catalog/catalog.json.