Chat2API icon indicating copy to clipboard operation
Chat2API copied to clipboard

[BUG] tool calls are not working

Open WhyMehDie opened this issue 6 months ago • 2 comments

inside github copilot and roo code or any other app the tool calls fail for example i sent a prompt and got this output:

**> I'll create this hero section project from scratch. Let me first set up the project structure, then implement all the components.

<run_in_terminal> cd "c:\Users\Why-T\Desktop\test1" && npm create vite@latest . -- --template react-ts 2>&1 false </run_in_terminal> **

nothing was executed no tools were used

WhyMehDie avatar May 20 '26 12:05 WhyMehDie

I believe what you should do is, in Model Management > Tool Calling, change the injection mode to "Always Inject," set the protocol format to XML, and enable tool calling parsing. This ensures your prompt is correctly injected, rather than relying on the less reliable automatic recognition. Although, as you mentioned, this is also a bug—the automatic recognition itself is problematic.

CYoJkoY avatar May 20 '26 23:05 CYoJkoY

Closing as a duplicate of #100. Cross-client tool-calling behavior, including Roo/OpenCode-style execution flows, is tracked in the consolidated tool-calling compatibility issue.

xiaoY233 avatar May 27 '26 08:05 xiaoY233