[GH-ISSUE #14977] Cannot use any tool with qwen3 latest #9628

Closed
opened 2026-04-12 22:31:44 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @kingofthebongo2008 on GitHub (Mar 20, 2026).
Original GitHub issue: https://github.com/ollama/ollama/issues/14977

What is the issue?

write new file with the tool write at C:\Users\user\opencode_test.txt with this exact content: "Hello world"
~ Preparing write...
Error: The write tool was called with invalid arguments: [
{
"expected": "string",
"code": "invalid_type",
"path": [
"filePath"
],
"message": "Invalid input: expected string, received undefined"
}
].
Please rewrite the input so it satisfies the expected schema.
How one can do this to work
Tested ollama 0.18.2 and ollama 0.17.5

Relevant log output


OS

No response

GPU

No response

CPU

No response

Ollama version

No response

Originally created by @kingofthebongo2008 on GitHub (Mar 20, 2026). Original GitHub issue: https://github.com/ollama/ollama/issues/14977 ### What is the issue? write new file with the tool write at C:\Users\user\opencode_test.txt with this exact content: "Hello world" ~ Preparing write... Error: The write tool was called with invalid arguments: [ { "expected": "string", "code": "invalid_type", "path": [ "filePath" ], "message": "Invalid input: expected string, received undefined" } ]. Please rewrite the input so it satisfies the expected schema. How one can do this to work Tested ollama 0.18.2 and ollama 0.17.5 ### Relevant log output ```shell ``` ### OS _No response_ ### GPU _No response_ ### CPU _No response_ ### Ollama version _No response_
GiteaMirror added the bug label 2026-04-12 22:31:44 -05:00
Author
Owner

@rick-github commented on GitHub (Mar 20, 2026):

Increase context window size.

<!-- gh-comment-id:4096688634 --> @rick-github commented on GitHub (Mar 20, 2026): Increase [context window size](https://docs.ollama.com/integrations/opencode#install:~:text=OpenCode%20requires%20a%20larger%20context%20window).
Author
Owner

@kingofthebongo2008 commented on GitHub (Mar 21, 2026):

@rick-github thank you

<!-- gh-comment-id:4103331267 --> @kingofthebongo2008 commented on GitHub (Mar 21, 2026): @rick-github thank you
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#9628