Schedule agent run
schedule_runDefer a one-shot agent run by delay_seconds or fire_at, then show the owner the prompt, time, and confirm_url for approval in Plori; recurring runs need create_workflow with a cron trigger.
Instructions
Request a one-shot deferred run of an agent, billed like any run. The schedule is not queued until the account owner confirms it in the Plori web app. Show the owner the prompt, time and confirm_url. The calling model cannot confirm it. 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 | ||
| confirm_url | No | ||
| confirmed_at | No | ||
| last_fired_at | No |