todowrite:tool call parameter error #7721

Open
opened 2026-02-16 18:08:01 -05:00 by yindo · 1 comment
Owner

Originally created by @jerrod-ji on GitHub (Jan 27, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

~ Updating todos...
Error: The todowrite tool was called with invalid arguments: [
{
"expected": "array",
"code": "invalid_type",
"path": [
"todos"
],
"message": "Invalid input: expected array, received string"
}
].
Please rewrite the input so it satisfies the expected schema.

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @jerrod-ji on GitHub (Jan 27, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description ~ Updating todos... Error: The todowrite tool was called with invalid arguments: [ { "expected": "array", "code": "invalid_type", "path": [ "todos" ], "message": "Invalid input: expected array, received string" } ]. Please rewrite the input so it satisfies the expected schema. ### Plugins _No response_ ### OpenCode version _No response_ ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 18:08:01 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 27, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #7512: Tools with array/object parameters fail when LLM sends stringified JSON - This describes the exact same issue where the todos parameter is received as a stringified array instead of an actual array
  • #1373: AI_InvalidToolInputError: Invalid input for tool todowrite - Another report of the same todowrite validation error with similar root cause

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 27, 2026): This issue might be a duplicate of existing issues. Please check: - #7512: Tools with array/object parameters fail when LLM sends stringified JSON - This describes the exact same issue where the `todos` parameter is received as a stringified array instead of an actual array - #1373: AI_InvalidToolInputError: Invalid input for tool todowrite - Another report of the same todowrite validation error with similar root cause Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7721