Tool Use Error — Unexpected tool_use_id
LLM request rejected with 'unexpected tool_use_id found in tool_result blocks'. Quick fix inside.
⚠️ The Problem
The bot fails mid-conversation with:
LLM request rejected: messages.24.content.1: unexpected tool_use_id found in tool_result blocks: toolu_01VXP4dBvqNB7SZVmfDB6adX. Each tool_result block must have a corresponding tool_use block in the previous message.🔍 Why This Happens
This happens when the conversation history becomes internally inconsistent. The error means there's a tool result in the history that references a tool call that doesn't exist (or was removed).
Common causes:
- A tool call crashed mid-execution
- Session was interrupted during a tool run
- Context compaction removed a tool_use but kept its result
- Very long threads with lots of tool usage
✅ The Fix
The fix is simple — start a fresh session. Send this in the same chat where it's failing:
/newOr use /reset as an alternative.
This clears the broken history and starts fresh. Your memory and preferences are preserved.
If this happens repeatedly, please report it as a bug:
🔥 Your AI should run your business, not just answer questions.
We'll show you how.Free to join.
📋 Quick Commands
| Command | Description |
|---|---|
| /new | Start fresh session (preferred) |
| /reset | Alternative to /new |
| openclaw logs --since 10m | Check logs for more context |
Related Issues
📚 You Might Also Like
OpenClaw March 2026 Update: PDF Tool, Telegram Streaming, Secrets Management & More
OpenClaw March 2026 Update: PDF Tool, Telegram Streaming, Secrets Management & More
Discord
Add your AI assistant to Discord servers and DMs. Get help, manage tasks, and run automations directly from your Discord channels.
Best Local Models for OpenClaw (Free Tier Guide)
Which local models actually work with OpenClaw? A tiered breakdown of Qwen, Llama, Mistral, and more — with hardware requirements, tool-calling reliability ratings, and the hybrid approach that costs $0/month.
AI That Remembers: How Memory Changes Everything
ChatGPT forgets every conversation. But AI with real memory transforms from a tool into a true assistant. Here's how AI memory works and why it matters.
🐙 Your AI should run your business.
Weekly live builds + template vault. We'll show you how to make AI actually work.Free to join.
Join Vibe Combinator →