Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(cron): improve action parameter description for better model understanding

Jiang Bohanab85a0143132
diff --git a/src/agent/tools/cron/cron-tool.ts b/src/agent/tools/cron/cron-tool.ts
index 1d0aa9410d..650d91219a 100644
--- a/src/agent/tools/cron/cron-tool.ts
+++ b/src/agent/tools/cron/cron-tool.ts
@@ -27,7 +27,7 @@ const CronSchema = Type.Object({
Type.Literal("remove"),
Type.Literal("run"),
Type.Literal("logs"),
- ], { description: "The action to perform" }),
+ ], { description: "The action to perform. Must be one of: status, list, add, update, remove, run, logs" }),
// list filter
enabled: Type.Optional(Type.Boolean({ description: "Filter by enabled status (for list)" })),
@@ -154,6 +154,8 @@ function parseSchedule(schedule: CronArgs["schedule"]): CronSchedule | { error:
const TOOL_DESCRIPTION = `Create, manage, and execute scheduled tasks (cron jobs).
+IMPORTANT: The "action" parameter must be exactly one of these values: "status", "list", "add", "update", "remove", "run", "logs"
+
## Actions
### status