Skip to content

ApprovalCard

View as Markdown
function ApprovalCard(__namedParameters): Element;

Defined in: react-ui/src/components/ApprovalCard.tsx:44

The only boxed element in the conversation: an amber card asking to allow one tool call. Shows the title, the most informative target (command in mono, else path / host, plus cwd) and the description; “Details” reveals the raw target. Enter allows while focus is on the card.

Parameter Type
__namedParameters { approval: { allowedScopes: ("once" | "session")[]; availableDecisions: ("deny" | "allow_once" | "allow_session")[]; category: "mcp" | "file" | "shell" | "network" | "other"; createdAt: string; decision?: "deny" | "allow"; description?: string; expiresAt: string; id: string; runId: string; runtimeId: string; sessionId: string; state: | "failed" | "cancelled" | "pending" | "submitting" | "approved" | "denied" | "expired" | "reconciling"; target: { command?: string; cwd?: string; host?: string; path?: string; }; title: string; toolId?: string; version: number; }; }
__namedParameters.approval { allowedScopes: ("once" | "session")[]; availableDecisions: ("deny" | "allow_once" | "allow_session")[]; category: "mcp" | "file" | "shell" | "network" | "other"; createdAt: string; decision?: "deny" | "allow"; description?: string; expiresAt: string; id: string; runId: string; runtimeId: string; sessionId: string; state: | "failed" | "cancelled" | "pending" | "submitting" | "approved" | "denied" | "expired" | "reconciling"; target: { command?: string; cwd?: string; host?: string; path?: string; }; title: string; toolId?: string; version: number; }
__namedParameters.approval.allowedScopes ("once" | "session")[]
__namedParameters.approval.availableDecisions ("deny" | "allow_once" | "allow_session")[]
__namedParameters.approval.category "mcp" | "file" | "shell" | "network" | "other"
__namedParameters.approval.createdAt string
__namedParameters.approval.decision? "deny" | "allow"
__namedParameters.approval.description? string
__namedParameters.approval.expiresAt string
__namedParameters.approval.id string
__namedParameters.approval.runId string
__namedParameters.approval.runtimeId string
__namedParameters.approval.sessionId string
__namedParameters.approval.state | "failed" | "cancelled" | "pending" | "submitting" | "approved" | "denied" | "expired" | "reconciling"
__namedParameters.approval.target { command?: string; cwd?: string; host?: string; path?: string; }
__namedParameters.approval.target.command? string
__namedParameters.approval.target.cwd? string
__namedParameters.approval.target.host? string
__namedParameters.approval.target.path? string
__namedParameters.approval.title string
__namedParameters.approval.toolId? string
__namedParameters.approval.version number

Element