AI_InvalidToolInputError: Invalid input for tool glob: JSON parsing failed: Text: <parameter=pattern>**</parameter>. Error message: JSON Parse error: Unrecognized token '<' #1093

Closed
opened 2026-02-16 17:29:26 -05:00 by yindo · 5 comments
Owner

Originally created by @Philosoph89 on GitHub (Aug 4, 2025).

Originally assigned to: @thdxr on GitHub.

Starting /init will throw this error, because the params are in xml, not json format.

Using LM Studio local with Qwen3 Coder 30B MLX

AI_InvalidToolInputError: Invalid input for tool glob: JSON parsing
failed: Text: <parameter=pattern>**.
Error message: JSON Parse error: Unrecognized token '<'

Originally created by @Philosoph89 on GitHub (Aug 4, 2025). Originally assigned to: @thdxr on GitHub. Starting /init will throw this error, because the params are in xml, not json format. Using LM Studio local with Qwen3 Coder 30B MLX AI_InvalidToolInputError: Invalid input for tool glob: JSON parsing failed: Text: <parameter=pattern>**</parameter>. Error message: JSON Parse error: Unrecognized token '<'
yindo added the model-problem label 2026-02-16 17:29:26 -05:00
yindo closed this issue 2026-02-16 17:29:26 -05:00
Author
Owner

@michaelgorskiBS24 commented on GitHub (Aug 4, 2025):

I got the same error on /init

@michaelgorskiBS24 commented on GitHub (Aug 4, 2025): I got the same error on /init
Author
Owner

@thdxr commented on GitHub (Aug 4, 2025):

you need to use LM Studio Beta - are you using that?

@thdxr commented on GitHub (Aug 4, 2025): you need to use LM Studio Beta - are you using that?
Author
Owner

@Philosoph89 commented on GitHub (Aug 4, 2025):

I'm using the beta, but not the newest build... Updated LM Studio to the newest build and now it works fine!

Thx @thdxr

@Philosoph89 commented on GitHub (Aug 4, 2025): I'm using the beta, but not the newest build... Updated LM Studio to the newest build and now it works fine! Thx @thdxr
Author
Owner

@barrenaedu commented on GitHub (Oct 8, 2025):

Same error here, using opencode 0.14.6 and LM Studio 0.3.29 with qwen/qwen3-coder-30b. If I use qwen/qwen2.5-coder-14b the error is not present.

Image
@barrenaedu commented on GitHub (Oct 8, 2025): Same error here, using opencode 0.14.6 and LM Studio 0.3.29 with qwen/qwen3-coder-30b. If I use qwen/qwen2.5-coder-14b the error is not present. <img width="3076" height="409" alt="Image" src="https://github.com/user-attachments/assets/f6bde1cd-3759-4712-bf83-b9b35de423fa" />
Author
Owner

@up_the_irons commented on GitHub (Oct 19, 2025):

I also had the same issue after upgrading LM Studio a couple weeks back. It's related to this: https://github.com/lmstudio-ai/lmstudio-bug-tracker/issues/1071

They fixed it in LM Studio 0.3.30 build 1, so you just need to upgrade.

@up_the_irons commented on GitHub (Oct 19, 2025): I also had the same issue after upgrading LM Studio a couple weeks back. It's related to this: https://github.com/lmstudio-ai/lmstudio-bug-tracker/issues/1071 They fixed it in LM Studio 0.3.30 build 1, so you just need to upgrade.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1093