OpenClaw Support: kimi-coding/k2p5 Tool Validation Error — Diagnostic Report
1. Summary
After upgrading from a custom kimi-code provider (using openai-completions adapter) to the built-in kimi-coding provider (using anthropic-messages adapter) per the guidance in Issue #22409 / PR #22526, all tool-using agent interactions fail with 23 validation errors. The Kimi Coding API endpoint rejects tool definitions sent in Anthropic format, expecting OpenAI format instead.
Pure text chat (no tools) works correctly on kimi-coding/k2p5 with anthropic-messages.
2. Error Message (verbatim, truncated)
[Error: request could not be processed] {
"error": {
"message": "23 validation errors:\n
{'type': 'missing', 'loc': ('body', 'tools', 0, 'function'), 'msg': 'Field required',
'input': {'name': 'read', 'description': 'Read the contents of a file. Supports text files and images (jpg, png, gif, webp). Images are sent as attachments. For text files, output is truncated to 2000 lines or 50KB (whichever is hit first). Use offset/limit for large files. When you need the full file, continue with offset until complete.',
'input_schema': {'type': ...
All 23 built-in tools (read, exec, web_search, cron, etc.) produce identical validation errors. Each error says 'function' field is required at body.tools[N].
3. Environment & Configuration
3.1 OpenClaw Version
meta.lastTouchedVersion: "2026.2.26"
wizard.lastRunVersion: "2026.2.26"
wizard.lastRunCommand: "doctor"
wizard.lastRunMode: "local"