获取 MCP 工具配置覆盖
获取 MCP 工具配置覆盖
获取指定 MCP 工具的配置覆盖项。
路径参数
mcp_server_id
MCP 服务器 ID。
tool_name
要获取配置覆盖的 MCP 工具名称。
请求头
xi-api-key
响应
成功响应
tool_name
MCP 工具名称
pre_tool_speech
设定后,覆盖服务器对此工具的 pre_tool_speech 设置。
允许的值:
interruption_mode
设定后,覆盖服务器对此工具的 interruption_mode 设置。
允许的值:
tool_call_sound
覆盖服务器对此工具的 tool_call_sound 设置。声音名称会播放对应声音;‘off’ 覆盖为无声音(静音);null 表示不覆盖(继承服务器默认值)。
tool_call_sound_behavior
设定后,覆盖服务器对此工具的 tool_call_sound_behavior 设置。
允许的值:
execution_mode
设定后,覆盖服务器对此工具的 execution_mode 设置。
允许的值:
response_timeout_secs
设定后,覆盖服务器对此 MCP 工具的响应超时设置(秒)。
assignments
此 MCP 工具的动态变量赋值
input_overrides
JSON 路径到输入覆盖配置的映射
response_mocks
带可选参数条件的模拟响应。按从上到下的顺序评估,首个匹配项生效。
force_pre_tool_speechDeprecated
已弃用:请改用 pre_tool_speech。设置后,将覆盖服务器对此工具的 force_pre_tool_speech 设置。
disable_interruptionsDeprecated
已弃用:请改用 interruption_mode。设置后,将覆盖服务器对此工具的 disable_interruptions 设置。
错误
404
Not Found Error
422
Unprocessable Entity Error