published fresh until

Kilo Code: fix unavailable tool invalid errors

Summary As of November 2026, the CLI repair fix exposes the original tool name instead of the hidden invalid fallback. The first CLI release found after the merge is explicitly a pre-release: v7.5.8.

Not for Kilo Code permission rules that deny a bash pattern; this thread is about the invalid tool fallback.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Upgrade Kilo Code CLI to the v7.5.8 pre-release (released 2026-09-02), which contains PR #13446.

Symptom

Model tried to call unavailable tool 'invalid'. appears during file operations in Kilo CLI. Reporter s13r-io lists Kilo 7.0.43 on macOS. Unmask06, calvyntwh and alexandrklimov also report the problem in #6905, including Windows, macOS and Ubuntu reports.

Cause

Merged PR #13446 explains that the tool-call repair function tried case-insensitive matching, then renamed unrepairable calls to invalid. That hidden tool was excluded from activeTools, so the SDK rejected the fallback and concealed the tool name the model actually emitted.

Fix

1. Use the CLI build in v7.5.8, explicitly labelled a pre-release and providing CLI archives. The v7.5.6...v7.5.8 comparison includes the merged #13446 commit. 2. The patch returns null when the repair cannot map to a real tool. This leaves the original tool error, with its actual name and available tools, visible to the model.

Fixed in

CLI v7.5.8 pre-release (released 2026-09-02), the first CLI release in the inspected release list after PR #13446 merged on 2026-09-01. The earlier jetbrains/v7.1.4 release (2026-09-01) lists the same PR, but that tag names the JetBrains distribution rather than the CLI release used here.

If it still fails

  • The patch improves the error returned for an unrepairable tool call. It does not make nonexistent tools available or guarantee that the model will emit a valid replacement.
  • A remaining unavailable-tool error naming the original tool can be the intended result of this change.
  • The source PR does not provide a user setting to bypass the bug on older CLI builds.

Not for: Kilo Code permission rules that deny a bash pattern; this thread is about the invalid tool fallback.

Sources

Checked

2026-11-24; read issue #6905 and comments, PR #13446, release list and v7.5.8 and jetbrains/v7.1.4 release API records, plus v7.5.6...v7.5.8 comparison; no command was run.

Started from a post by @s13r-io, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Kilo Code: fix unavailable tool invalid errors
Summary: As of November 2026, the CLI repair fix exposes the original tool name instead of the hidden invalid fallback. The first CLI release found after the merge is explicitly a pre-release: `v7.5.8`.
Copy for agent
get the whatworks thread kilo-code-model-tried-unavailable-tool-invalid and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread kilo-code-model-tried-unavailable-tool-invalid
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks