import type * as ElevenLabs from "../index"; /** * An MCP tool configuration that can be used to call MCP servers */ export interface McpToolConfigOutput { name: string; /** Description of when the tool should be used and what it does. */ description: string; /** The maximum time in seconds to wait for the MCP tool call to complete. Must be between 5 and 300 seconds (inclusive). */ responseTimeoutSecs?: number; /** DEPRECATED: use `interruption_mode` instead. If true, the user will not be able to interrupt the agent while this tool is running. */ disableInterruptions?: boolean; /** Controls whether the user can interrupt the agent around this tool call. 'allow' (default) lets the user interrupt at any time, 'disable_during_tool' suppresses interruptions only while the tool is running, 'disable_during_tool_and_turn' suppresses interruptions while the tool runs and for the agent response that follows it. */ interruptionMode?: ElevenLabs.ToolInterruptionMode; /** DEPRECATED: use `pre_tool_speech` instead. If true, the agent will speak before the tool call. */ forcePreToolSpeech?: boolean; /** Controls whether the agent speaks before this tool is called. 'auto' (default) decides based on recent tool latency, 'force' always asks the agent to speak, 'off' fully opts out regardless of latency. */ preToolSpeech?: ElevenLabs.PreToolSpeechMode; /** Configuration for extracting values from tool responses and assigning them to dynamic variables */ assignments?: ElevenLabs.DynamicVariableAssignment[]; /** Predefined tool call sound type to play during tool execution. If not specified, no tool call sound will be played. */ toolCallSound?: ElevenLabs.ToolCallSoundType; /** Determines when the tool call sound should play. 'auto' only plays when there's pre-tool speech, 'always' plays for every tool call. */ toolCallSoundBehavior?: ElevenLabs.ToolCallSoundBehavior; /** Controls how tool errors are processed before being shared with the agent. 'auto' determines handling based on tool type (summarized for native integrations, hide for others), 'summarized' sends an LLM-generated summary, 'passthrough' sends the raw error, 'hide' does not share the error with the agent. */ toolErrorHandlingMode?: ElevenLabs.ToolErrorHandlingMode; /** The type of MCP tool */ integrationType: ElevenLabs.IntegrationType; /** Schema for any parameters the LLM needs to provide to the MCP tool. */ parameters?: ElevenLabs.ObjectJsonSchemaPropertyOutput; /** The approval policy for the MCP tool */ approvalPolicy?: ElevenLabs.McpApprovalPolicy; /** The name of the MCP tool to call */ mcpToolName: string; /** The description of the MCP tool to call */ mcpToolDescription: string; /** The id of the MCP server to call */ mcpServerId: string; /** The name of the MCP server to call */ mcpServerName: string; /** Original inputSchema dict for consistent hashing */ mcpInputSchema?: Record; /** Determines when and how the tool executes: 'immediate' executes the tool right away when requested by the LLM, 'post_tool_speech' waits for the agent to finish speaking before executing, 'async' runs the tool in the background without blocking - best for long-running operations. */ executionMode?: ElevenLabs.ToolExecutionMode; /** Input parameter overrides for this tool */ inputOverrides?: Record; }