Skip to content

[BUG] fail to call tools with XML format #11187

@ionettr-hub

Description

@ionettr-hub

Problem (one or two sentences)

Newer versions cannot parse XML tool call requests.

Context (who is affected and when)

Happens whenever a tool is called

Reproduction steps

VS Code version: 1.107.1
Auto-Approve: Read, Write, Browse
Mode: code
Prompt: /init

Roo said
[TOOL_CALL]
{tool => "read_file", args => {
--path ".claude/CLAUDE.md"
}}
[/TOOL_CALL]
[TOOL_CALL]
{tool => "list_files", args => {
--path ".roo"
}}
[/TOOL_CALL]

Model Response Incomplete
The model failed to use any tools in its response. This typically happens when the model provides only text/reasoning without calling the required tools to complete the task.Details

Roo is having trouble...
This may indicate a failure in the model's thought process or inability to use a tool properly, which can be mitigated with some user guidance (e.g. "Try breaking down the task into smaller steps").

Expected result

Tool calling

Actual result

Cannot tool call

Variations tried (optional)

I rolled back to version 3.36.16, and under Providers, changed its Tool Call Protocol to XML.

Then everything worked fine—it could read files, create summaries, and modify files.
However, after upgrading to newest version, problem has emerged.
And there is no "Tool Call Protocol" option on newer versions. It should be brought back.

App Version

3.46.2

API Provider (optional)

OpenAI Compatible

Model Used (optional)

No response

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions