[Vercel] AI_InvalidToolArgumentsError: Invalid arguments for tool todowrite #238

Closed
opened 2026-02-16 17:25:53 -05:00 by yindo · 2 comments
Owner

Originally created by @Isos9 on GitHub (Jun 23, 2025).

Originally assigned to: @thdxr on GitHub.

Hello, I tried opencode with v0 models, but it doesn't seem to work, because the tools always receive undefined values.

Now, the same prompt works with an OpenAI model for me, so it is mainly linked to how Vercel handles its models I guess.

Hope this help, let me know if you need more logs or tests that I can do.

Image

Image

Originally created by @Isos9 on GitHub (Jun 23, 2025). Originally assigned to: @thdxr on GitHub. Hello, I tried opencode with v0 models, but it doesn't seem to work, because the tools always receive undefined values. Now, the same prompt works with an OpenAI model for me, so it is mainly linked to how Vercel handles its models I guess. Hope this help, let me know if you need more logs or tests that I can do. ![Image](https://github.com/user-attachments/assets/6ed757d8-cefc-4793-a574-66a8f9ce87cc) ![Image](https://github.com/user-attachments/assets/a0a0c6e4-f678-4900-b722-7ad422260c4d)
yindo closed this issue 2026-02-16 17:25:53 -05:00
Author
Owner

@ctate commented on GitHub (Jul 1, 2025):

There was an issue with nested tool calling on our side. It has been fixed.

@ctate commented on GitHub (Jul 1, 2025): There was an issue with nested tool calling on our side. It has been fixed.
Author
Owner

@thdxr commented on GitHub (Jul 3, 2025):

thank you!

@thdxr commented on GitHub (Jul 3, 2025): thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#238