Schedule agent run
schedule_runDefer a single agent run to a future time using a delay or exact timestamp. Pass a prompt, and the run appears in history when it fires.
Instructions
Schedule a ONE-SHOT deferred run of an agent: it will be invoked once, later, with the given prompt, billed like any run, and appears in list_runs when it fires. Provide either delay_seconds (relative) or fire_at (an RFC3339 timestamp). For a recurring schedule, use create_workflow with a cron trigger instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The message to send the agent when the schedule fires. | |
| fire_at | No | Fire at this RFC3339 timestamp (mutually exclusive with delay_seconds). | |
| agent_id | Yes | The agent's UUID. | |
| session_id | No | Optional thread/session id to deliver the scheduled run into. | |
| delay_seconds | No | Fire this many seconds from now (mutually exclusive with fire_at). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| kind | Yes | ||
| prompt | Yes | ||
| status | Yes | ||
| fire_at | No | ||
| agent_id | Yes | ||
| attempts | Yes | ||
| metadata | No | Arbitrary JSON owned by the producing engine. | |
| thread_id | No | ||
| created_at | Yes | ||
| last_error | No | ||
| last_fired_at | No |