continue 下模型无法使用mcp (调用工具输出纯文本

遇到GLM-4.7 flash模型调用mcp时经常输出纯文本类似
<tool_call> xxxxx</tool_call>
# 或者 
Tool call: {
  "id": "x x x",
  "type": "function",
  "function": {
    "name": "run_terminal_command",
    "arguments": "{\"command\": \"node xxx.js\"}"
  }
}

 



需要给模型显式添加以下配置
capabilities:
  - tool_use

 

posted @ 2026-03-16 19:10  谁凭花解语  阅读(40)  评论(0)    收藏  举报