mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-22 16:25:51 +00:00
fix: 防止 MCP 工具调用失败后的 SearchExtraTools/ExecuteExtraTool 死循环
This commit is contained in:
@@ -15,5 +15,12 @@ Inputs:
|
||||
- tool_name: The exact name of the target tool (string)
|
||||
- params: The parameters to pass to the target tool (object)
|
||||
|
||||
If the tool is not found, an error message will be returned suggesting to use SearchExtraTools to discover available tools.`
|
||||
If the tool is not found, an error message will be returned suggesting to use SearchExtraTools to discover available tools.
|
||||
|
||||
FAILURE HANDLING — CRITICAL:
|
||||
If ExecuteExtraTool returns an error (missing parameters, validation error, permission denied, tool not found, or any other failure), you MUST:
|
||||
1. Stop immediately — do NOT retry the same tool.
|
||||
2. Do NOT call SearchExtraTools again for the same tool name.
|
||||
3. Inform the user about the failure and suggest alternatives.
|
||||
Never enter a SearchExtraTools → ExecuteExtraTool retry loop for the same tool.`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user