Bug Description
openclaw cron add CLI command fails with validation error.
Environment
- openclaw: linux/amd64
- node: v22.22.1
- npm global: ~/.npm-global
Steps to Reproduce
openclaw cron add --name test --every 300 --message ping
Expected
Cron job should be created successfully.
Actual
Validation failed for tool "cron": - job: must be object
Root Cause
CLI sends flat arguments:
{ "action": "add", "name": "test", "every": 300, "message": "ping" }
But cron tool schema expects a job wrapper:
{ "action": "add", "job": { "name": "test", "schedule": {...}, "payload": {...} }}
Impact
- All cron jobs fail to create via CLI
- TangSeng workflow automation cannot be set up
- Every 5-minute task polling is broken
Suggested Fix
CLI should wrap the job payload in a job field before calling the cron tool.
Bug Description
openclaw cron addCLI command fails with validation error.Environment
Steps to Reproduce
openclaw cron add --name test --every 300 --message pingExpected
Cron job should be created successfully.
Actual
Root Cause
CLI sends flat arguments:
{ "action": "add", "name": "test", "every": 300, "message": "ping" }But cron tool schema expects a
jobwrapper:{ "action": "add", "job": { "name": "test", "schedule": {...}, "payload": {...} }}Impact
Suggested Fix
CLI should wrap the job payload in a
jobfield before calling the cron tool.