Skip to main content
anthropic.confirmTool approves or denies a pending built-in or MCP tool execution.

Example

automations/anthropic-confirm-tool.automation.ts

Inputs

Requires sessionId, the pending toolUseId, and result. Use denyMessage only when denying; include sessionThreadId for a subagent tool call. Inputs use public camelCase names and accept signals.

Output and behavior

Returns the accepted confirmation. Resolve every ID from requiresAction before execution resumes. Anthropic requests time out before the action lease and provider mutations are not retried after an uncertain response unless stated otherwise.