openclaw - 💡(How to fix) Fix Gateway agent calls fail: 'Invalid value: custom' for tools[].type

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…

Cron jobs failing because gateway passes tools[].type: "custom" to Anthropic Messages API → 400.

Error Message

{
  "type": "error",
  "error": {
    "type": "invalid_request_error",
    "code": "unknown_parameter",
    "message": "Invalid value: 'custom'",
    "param": "tools"
  },
  "status": 400
}

Root Cause

Summary

Cron jobs failing because gateway passes tools[].type: "custom" to Anthropic Messages API → 400.

Fix Action

Workaround

openclaw cron disable <id> for affected jobs.

Code Example

{
  "type": "error",
  "error": {
    "type": "invalid_request_error",
    "code": "unknown_parameter",
    "message": "Invalid value: 'custom'",
    "param": "tools"
  },
  "status": 400
}
RAW_BUFFERClick to expand / collapse

Summary

Cron jobs failing because gateway passes tools[].type: "custom" to Anthropic Messages API → 400.

Repro

  • Version: openclaw 2026.5.19 (a185ca2)
  • Platform: macOS 26.5 arm64, node 22.22.2
  • Setup: 2 agents (main + crcbot), 11 cron jobs targeting Anthropic + OpenAI

Error

{
  "type": "error",
  "error": {
    "type": "invalid_request_error",
    "code": "unknown_parameter",
    "message": "Invalid value: 'custom'",
    "param": "tools"
  },
  "status": 400
}

Source

grep -r 'type: "custom"' dist/ shows the literal in src-BSuxs9xi.js + schemas-Bmna8ihM.js (3 occurrences). Anthropic Messages API doesn't accept tools[].type: 'custom' as a valid tool type. Valid: omit type for user-defined tools, or use computer_20241022/text_editor_20241022/bash_20241022 for builtin tools.

Impact

All cron jobs w/ tool-calling agents fail silently. openclaw secrets audit clean, openclaw status clean, but cron list shows 9/11 jobs in error state.

Workaround

openclaw cron disable <id> for affected jobs.

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