Skip to content

siteApprovalRequest

View as Markdown
function siteApprovalRequest(
t,
args,
toolId,
cwd
): object;

Defined in: runtime-helpers.ts:22

The approval card for a site tool that requires confirmation (category mcp).

Parameter Type
t Pick<ToolSpec, "name" | "description">
args unknown
toolId string
cwd string
Name Type Default value Description Defined in
availableDecisions? ("allow_once" | "allow_session" | "deny")[] - Defaults to [‘allow_once’, ‘deny’] when omitted. runtime.ts:54
category "file" | "shell" | "network" | "mcp" | "other" ApprovalCategorySchema - runtime.ts:51
description? string - - runtime.ts:55
extensions? Record<string, unknown> - - runtime.ts:57
target object ApprovalTargetSchema - runtime.ts:56
target.command? string - - domain.ts:160
target.cwd? string - - domain.ts:161
target.host? string - - domain.ts:163
target.path? string - - domain.ts:162
title string - - runtime.ts:52
toolId? string - - runtime.ts:50