openclaw - 💡(How to fix) Fix [Bug] Tool calls returned as raw text instead of execution in 2026.4.2 with kimi/k2p5 [5 comments, 5 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#60179Fetched 2026-04-08 02:35:24
View on GitHub
Comments
5
Participants
5
Timeline
11
Reactions
3
Timeline (top)
commented ×5subscribed ×2closed ×1cross-referenced ×1

Fix Action

Workaround

Downgrade to 2026.4.1:

npm install -g [email protected]

Code Example

OpenClaw 2026.4.2 (da64a97)
ubuntu /home/ubuntu/clawd

---

exec({"command": "openclaw --version", "description": "Check OpenClaw version"})
exec({"command": "echo \"OpenClaw 4.2 exec test - $(date)\"", "description": "Test basic exec"})
exec({"command": "whoami && pwd && ls -la | head -5", "description": "Test multi-command"})

---

npm install -g openclaw@2026.4.1
RAW_BUFFERClick to expand / collapse

Bug Description

In OpenClaw 2026.4.2, tool calls (exec, web_search, etc.) with kimi/k2p5 model are returned as raw text in the response instead of being executed. The model outputs tool call syntax as plain text rather than triggering actual tool execution.

This is a regression from 2026.4.1 where tool calling worked correctly.

Environment

ItemValue
OpenClaw Version2026.4.2 (da64a97) - Broken
Last Working2026.4.1 - Works
Providerkimi (moonshot)
Modelkimi/k2p5 (also affects kimi-coding/k2p5)
API Typeanthropic-messages
OSUbuntu (AWS EC2 t3.small)

Steps to Reproduce

  1. Configure kimi/k2p5 as default model
  2. Upgrade to OpenClaw 2026.4.2
  3. Send any message that should trigger tool use, e.g.: "Check OpenClaw version"
  4. Observe: Model responds with raw tool call syntax instead of executing

Expected Behavior

Tools should execute and return actual results:

OpenClaw 2026.4.2 (da64a97)
ubuntu /home/ubuntu/clawd

Actual Behavior

Agent responds with raw tool call syntax embedded in text:

User Request:

“I updated OpenClaw to 4.2, please try another tool and exec call test.”

Agent Response (BROKEN):

exec({"command": "openclaw --version", "description": "Check OpenClaw version"})
exec({"command": "echo \"OpenClaw 4.2 exec test - $(date)\"", "description": "Test basic exec"})
exec({"command": "whoami && pwd && ls -la | head -5", "description": "Test multi-command"})

Tools were NOT executed — only raw syntax was returned.

Regression Confirmation

VersionStatus
2026.4.1✅ Tool calling works
2026.4.2❌ Raw text output only

Rollback to 2026.4.1 confirmed to restore functionality.

Related Issues

  • #40082 - Similar tool execution issues with kimi-coding/k2p5

Workaround

Downgrade to 2026.4.1:

npm install -g [email protected]

Additional Context

  • Issue appears specific to kimi/k2p5 model
  • Tool call syntax is correctly formatted but not executed
  • Model appears to generate code instead of using proper tool_use blocks

Reporter: @darealgege
Date: 2026-04-03

extent analysis

TL;DR

Downgrade to OpenClaw version 2026.4.1 to restore tool execution functionality.

Guidance

  • The issue is specific to the kimi/k2p5 model in OpenClaw version 2026.4.2, so verify that downgrading to 2026.4.1 resolves the issue.
  • Check if other models are affected by attempting to use them for tool calls.
  • Test tool calls with different syntax and commands to ensure the issue is not command-specific.
  • Monitor related issues, such as #40082, for potential fixes or workarounds.

Example

To downgrade to the working version, run the following command:

npm install -g [email protected]

Notes

The root cause of the issue is unclear, but it appears to be related to changes in OpenClaw version 2026.4.2 that affect the kimi/k2p5 model's ability to execute tool calls.

Recommendation

Apply the workaround by downgrading to version 2026.4.1, as it has been confirmed to restore functionality.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING