Agent FixboardAgentFixboard

Tool calls fail because arguments come back as XML-like text

In agent mode, a tool call's function.arguments is XML-like text, JSON parsing returns {}, and the call fails. The sample starts with <tool_call> and <function=ls>, then <parameter=dirPath> and src.

From GitHub

continuedev/continue

Difficulty
Easy
Time
~5 min
Steps
2
Fixed in
—
Last checked

No upstream fix: these steps work around it. Source: issue closed (not planned) without a merged fix. Last checked 2026-10-25.

Symptom

In agent mode, a tool call's function.arguments is XML-like text, JSON parsing returns {}, and the call fails. The sample starts with <tool_call> and <function=ls>, then <parameter=dirPath> and src.

Evidence what you'll see

  • The report's shape is tool_calls[].function.name of ls and tool_calls[].function.arguments holding that XML-like text.
  • The issue was closed with no merged change. The local commits named in the report, c89c2d170 and 5840ed876, were not pushed.

Why it happens

Argument parsing accepts JSON only. When the arguments are <parameter=name>value</parameter> text, the parse result is {} and required-argument checks fail.

Affected versions

Continue agent mode against a compatible chat endpoint that returns those XML-like arguments. The linked issue does not name a Continue version, an operating system, or a Node version.

Fix steps

0 of 2 done

Your check marks stay in this browser only.

How to check it worked

  • A tool-heavy request runs the tool with dirPath of src, not with {}.

If it still fails

  • The linked issue does not name a release that parses those arguments. Until one does, an endpoint that still returns the <tool_call> text will still parse as {}.

Sources and credit

Summarized in our own words from these public reports. Credit goes to their authors.

Provided as is, without warranty. Try changes in a non-production environment and back up first. Security-related steps: verify against the official docs. Terms · Request removal or attribution change

Hit an error we don't cover? Submit it