Skip to content

Type Alias: PendingApproval

PendingApproval = object

One approval-gated tool call paused mid-turn. runId is the Mastra workflow id needed to resume; it’s always present when the card was constructed from a live source (the stream’s data-tool-call-approval part or pendingApprovalsByMessage), and absent only for approvals reconstructed from a history load where the original runId is lost.

input: unknown


optional runId?: string

Mastra run id from the approval chunk.


toolCallId: string


toolName: string