partType: ToolPart
The tool part from your message. Matches the AI SDK shape, so you pass it straight through
titleType: string
The tool in a few words, such as Stripe refund. Shown beside the mark
summaryType: ReactNode
The action as one sentence a person can approve. Set large, so it leads the card
iconType: ReactNode
The tool's mark, such as a product logo, in a small tile
impactType: ReactNode[]
What is at stake, one short line each, such as what can be undone and who hears about it
fieldsType: ReviewField[]
The facts a person checks before approving, built from part.input
onDecisionType: ({ id, approved, remember }) => void | Promise<void>
Sends the decision. Both buttons lock until the promise settles
rememberLabelType: string
Shows a checkbox that sends remember true with an approval, such as Always allow refunds under $50
autoFocusApprovalType: booleanDefault: false
Focuses the review heading when an actionable approval appears
approveLabelType: stringDefault: Approve
Label for the approve button
denyLabelType: stringDefault: Deny
Label for the deny button
executionType: "queued" | "running" | "interrupted"
What your executor reports. The part alone cannot say a call is running
resultSummaryType: ReactNode
One line that says what happened. The finished card folds down to it
onReceiptSettledType: (toolCallId: string) => void
Called after the final receipt opens. Use it to sequence a follow-up message
durationMsType: number
How long the call took, shown beside the result
inputTextType: string
Raw input while it streams, shown in Tool call details
classNameType: string
Additional classes for the card