Skip to content

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.

Capabilityui.schedule_add
AreaWindow and UI driver
Accesschanges settings
Reaches—
Rightssettings
Dry rundry_run, on unless the call turns it off

Arguments

ArgumentTypeDescription
idrequiredstringThe task id: 1 to 64 characters of a-z, 0-9, -, _.
promptrequiredstringThe instruction the agent gets (1 to 4000 characters). Event data is never added to it.
atintegerOnce at this time (seconds since the Unix epoch). Give exactly one of at, every, daily, event.minimum 0
everyintegerEvery this many seconds (300 to 2592000).minimum 0
fromintegerWith every: the first fire time (default: now plus every).minimum 0
dailystringDaily at HH:MM in the workspace's time.
eventstringOn an event: ci_failed, pr_comment, merge_conflict, file_changed or ticket_status.
filterstringWith event: the pattern for the event's subject (* any characters except /, ** any characters).
priorityinteger0 to 9, higher first (default 5).minimum 0 · maximum 255
afterarray of stringIds of tasks whose last run must have succeeded first.default []
resourcesarray of stringThe resources a run occupies (default machine), e.g. simulator, database:pg.
budget_centsrequiredintegerBudget of one run in cents (1 to 10000).minimum 0
max_minutesrequiredintegerLongest run in minutes (1 to 1440).minimum 0
rightsarray of stringThe rights a run may use; each must be granted by the workspace's grant file.default []
enabledbooleanWhether the task fires (default true).
replacebooleanReplace an existing task of the same id.default false
dry_runbooleanOnly 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.

Terminal window
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"
}