[Bug] TodoWrite tool parameter serialization error - array incorrectly parsed as string

Resolved 💬 3 comments Opened Mar 5, 2026 by AntheaLaffy Closed Mar 8, 2026

Description

The Claude Code TodoWrite tool cannot be used properly. The todos parameter (should be array type) is incorrectly parsed as string type, causing all calls to fail.

Steps to Reproduce

  1. Use TodoWrite tool to create a todo item
  2. Pass parameter format like: {"todos": [{"content": "test", "status": "in_progress"}]}
  3. Get error: InputValidationError: The parameter todos type is expected as array but provided as string

Error Message

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

Environment

  • Platform: Linux (Arch Linux)
  • Desktop Environment: Niri (Wayland)
  • Claude Code version: 2.1.69 (from logs)

Additional Information

  • Same issue also affects AskUserQuestion tool (questions parameter)
  • This problem repeatedly occurs across multiple sessions

View original on GitHub ↗

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