session_schedule
Schedule a prompt to fire on an OpenCode session after a delay of up to one hour; use for one-off reminders, not recurring or restart-safe jobs.
Instructions
Schedule a message on a session after a delay. Fire-and-forget: does not survive server restart. For recurring checks, use OpenCode built-in automations.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>",
"prompt": "<prompt>",
"delay": "<delay>"
},
"name": "session_schedule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| delay | Yes | When to fire: a duration like "30s", "5m", "1h", "90s", "2m30s" or an ISO timestamp like "2026-11-22T13:00:00". Max 1 hour. | |
| prompt | Yes | Prompt text to send when the timer fires. | |
| server | No | Server id. Omit when exactly one server is available. | |
| allowed | No | Allow write operations (gated). | |
| session_id | Yes | Session id on that server. |