Skip to main content

cron-request

Manage scheduled (cron) jobs directly from the sandbox using the cron-rpc script.

跳到安装

来源信息

仓库
blas1n/openclaw-docker
最近来源活动
2026年2月10日 13:02
检测到的 SKILL.md 语言
英语
星标
0
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
cron-request
description
Manage scheduled (cron) jobs directly from the sandbox using the cron-rpc script.
metadata
{"openclaw":{"emoji":"⏰"}}
# Cron Management ## Overview Use `node scripts/cron-rpc.mjs` via `exec` to manage OpenClaw cron jobs directly. No host access needed. ## Commands ### List jobs ```bash node scripts/cron-rpc.mjs list ``` ### Add a job ```bash node scripts/cron-rpc.mjs add '{"name":"job-name","message":"what to do","every":"1h"}' ``` ### Remove / enable / disable / run ```bash node scripts/cron-rpc.mjs rm <id> node scripts/cron-rpc.mjs enable <id> node scripts/cron-rpc.mjs disable <id> node scripts/cron-rpc.mjs run <id> ``` ## Add job JSON options | Field | Required | Example | Description | |-------|----------|---------|-------------| | `name` | yes | `"daily-news"` | Job name (lowercase, hyphenated) | | `message` | yes | `"Summarize AI news"` | Instruction for the agent when job fires | | `every` | pick one | `"1h"`, `"30m"` | Repeating interval | | `cron` | pick one | `"0 9 * * *"` | 5-field cron expression | | `at` | pick one | `"+20m"` | One-shot at time or offset | | `tz` | no | `"Asia/Seoul"` | Timezone for cron expressions | | `session` | no | `"main"` | Session target (default: `"isolated"`) | | `enabled` | no | `false` | Create disabled (default: `true`) | | `deleteAfterRun` | no | `true` | Auto-delete one-shot jobs | | `model` | no | `"ollama/gpt-oss:20b"` | Model override | ## Example User: "매일 아침 9시에 AI 뉴스 요약해줘" ```bash node scripts/cron-rpc.mjs add '{"name":"daily-ai-news","message":"오늘의 AI 뉴스를 검색하고 주요 내용을 HTML로 정리해서 file-share 링크로 보내줘","cron":"0 9 * * *","tz":"Asia/Seoul"}' ``` ## Guidelines - Results are automatically delivered to Telegram (chat ID is pre-configured). - Write clear `message` instructions — this is what the agent receives when the job fires. - Use `list` to verify the job was created. - Prefer `cron` expressions with `tz` for daily/weekly schedules.
在 GitHub 查看