Plan a run for later
plan_runPlans a run of one of the person's routines for a moment to come — "Morning tomorrow at seven". It appears on the phone as a Planned run and begins at that moment; the person can move or delete it there. Give the moment with its time zone offset, as ISO 8601. Takes name and values as start_run does, and the answer carries run.
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": {
"routine": "<routine>",
"at": "<at>"
},
"name": "plan_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | Yes | When it begins, e.g. 2026-10-15T07:00:00-04:00. | |
| name | No | What this run is called, if not the routine's name. | |
| values | No | Values the run starts with, by key. | |
| routine | Yes | The routine's name or id. | |
| ask_first | No | Wait for the person to say yes on the phone before it begins. Use it when they asked you to check with them first. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run | No | The run it started, planned or found, where there is one: what set_value, next_step and the rest take. | |
| url | No | For publish_routine, once the person has published it: routinerun.com/c/<code>, the address to share. | |
| code | No | For publish_routine, once published: the eight-character code, which publish_routine takes again to replace it. | |
| status | Yes | What the phone did with it, in one word; the sentence beside it says what that means. | |
| command | Yes | The command's id, which command_status takes. |