[BUG] TodoWrite + tool_use_error + The parameter `todos` type is expected as `array` but provided as `string`

Resolved 💬 3 comments Opened Mar 20, 2026 by 2020init Closed Mar 23, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Model: MiniMax-M2.5
OS: Ubuntu
Claude Code Version: 2.1.76 in Claude Code CLI
When the model call the tool 'TodoWrite', it feedback as follow:

<tool_use_error>InputValidationError: TodoWrite failed due to the following issue:
The parameter `todos` type is expected as `array` but provided as `string`</tool_use_error>

What Should Happen?

Model: MiniMax-M2.5
OS: Ubuntu
Claude Code Version: 2.1.76 in Claude Code CLI
When the model call the tool 'TodoWrite', it feedback as follow:

<tool_use_error>InputValidationError: TodoWrite failed due to the following issue:
The parameter `todos` type is expected as `array` but provided as `string`</tool_use_error>

Error Messages/Logs

Steps to Reproduce

Model: MiniMax-M2.5
OS: Ubuntu
Claude Code Version: 2.1.76 in Claude Code CLI
When the model call the tool 'TodoWrite', it feedback as follow:

<tool_use_error>InputValidationError: TodoWrite failed due to the following issue:
The parameter `todos` type is expected as `array` but provided as `string`</tool_use_error>

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.76

Platform

Other

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Non-interactive/CI environment

Additional Information

Model: MiniMax-M2.5
OS: Ubuntu
Claude Code Version: 2.1.76 in Claude Code CLI
When the model call the tool 'TodoWrite', it feedback as follow:

<tool_use_error>InputValidationError: TodoWrite failed due to the following issue:
The parameter `todos` type is expected as `array` but provided as `string`</tool_use_error>

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗