schedule_add
MCP tools › Window and UI driver
Add a task to this workspace's scheduler: id, prompt (the agent's only instruction; event data is passed separately as untrusted data) and exactly one trigger: at, every (seconds, 300 to 2592000), daily (HH:MM, workspace time) or event (ci_failed, pr_comment, merge_conflict, file_changed, ticket_status). Dry run by default: returns the task it would write; dry_run=false needs the settings right, and each of rights must be granted by the workspace's grant file (a run gets the intersection with the grants in force at its start). Out-of-bounds values, unknown dependencies and cycles are refused. Logged in .ferris-idea/agent-log.jsonl.
| Capability | ui.schedule_add |
|---|---|
| Area | Window and UI driver |
| Access | changes settings |
| Reaches | — |
| Rights | settings |
| Dry run | dry_run, on unless the call turns it off |
Arguments
| Argument | Type | Description |
|---|---|---|
idrequired | string | The task id: 1 to 64 characters of a-z, 0-9, -, _. |
promptrequired | string | The instruction the agent gets (1 to 4000 characters). Event data is never added to it. |
at | integer | Once at this time (seconds since the Unix epoch). Give exactly one of at, every, daily,
event.minimum 0 |
every | integer | Every this many seconds (300 to 2592000).minimum 0 |
from | integer | With every: the first fire time (default: now plus every).minimum 0 |
daily | string | Daily at HH:MM in the workspace's time. |
event | string | On an event: ci_failed, pr_comment, merge_conflict, file_changed or ticket_status. |
filter | string | With event: the pattern for the event's subject (* any characters except /, **
any characters). |
priority | integer | 0 to 9, higher first (default 5).minimum 0 · maximum 255 |
after | array of string | Ids of tasks whose last run must have succeeded first.default [] |
resources | array of string | The resources a run occupies (default machine), e.g. simulator, database:pg. |
budget_centsrequired | integer | Budget of one run in cents (1 to 10000).minimum 0 |
max_minutesrequired | integer | Longest run in minutes (1 to 1440).minimum 0 |
rights | array of string | The rights a run may use; each must be granted by the workspace's grant file.default [] |
enabled | boolean | Whether the task fires (default true). |
replace | boolean | Replace an existing task of the same id.default false |
dry_run | boolean | Only show what would be written (default true); false writes and needs the settings
right. |
Call it from a shell
ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.
ferris-idea call ~/my-project schedule_add '{"id":"<string>","prompt":"<string>","budget_cents":1,"max_minutes":1}'Input schema as JSON
{ "properties": { "id": { "description": "The task id: 1 to 64 characters of a-z, 0-9, -, _.", "type": "string" }, "prompt": { "description": "The instruction the agent gets (1 to 4000 characters). Event data is never added to it.", "type": "string" }, "at": { "description": "Once at this time (seconds since the Unix epoch). Give exactly one of at, every, daily,\nevent.", "type": [ "integer", "null" ], "minimum": 0 }, "every": { "description": "Every this many seconds (300 to 2592000).", "type": [ "integer", "null" ], "minimum": 0 }, "from": { "description": "With `every`: the first fire time (default: now plus `every`).", "type": [ "integer", "null" ], "minimum": 0 }, "daily": { "description": "Daily at `HH:MM` in the workspace's time.", "type": [ "string", "null" ] }, "event": { "description": "On an event: ci_failed, pr_comment, merge_conflict, file_changed or ticket_status.", "type": [ "string", "null" ] }, "filter": { "description": "With `event`: the pattern for the event's subject (`*` any characters except `/`, `**`\nany characters).", "type": [ "string", "null" ] }, "priority": { "description": "0 to 9, higher first (default 5).", "type": [ "integer", "null" ], "maximum": 255, "minimum": 0 }, "after": { "description": "Ids of tasks whose last run must have succeeded first.", "type": "array", "items": { "type": "string" }, "default": [] }, "resources": { "description": "The resources a run occupies (default `machine`), e.g. `simulator`, `database:pg`.", "type": [ "array", "null" ], "items": { "type": "string" } }, "budget_cents": { "description": "Budget of one run in cents (1 to 10000).", "type": "integer", "minimum": 0 }, "max_minutes": { "description": "Longest run in minutes (1 to 1440).", "type": "integer", "minimum": 0 }, "rights": { "description": "The rights a run may use; each must be granted by the workspace's grant file.", "type": "array", "items": { "type": "string" }, "default": [] }, "enabled": { "description": "Whether the task fires (default true).", "type": [ "boolean", "null" ] }, "replace": { "description": "Replace an existing task of the same id.", "type": "boolean", "default": false }, "dry_run": { "description": "Only show what would be written (default true); false writes and needs the `settings`\nright.", "type": [ "boolean", "null" ] } }, "required": [ "id", "prompt", "budget_cents", "max_minutes" ], "additionalProperties": false, "type": "object"}