Start a routine
start_runStarts a run of one of the person's routines on their iPhone, by the routine's name (any case) or id. Its card appears on the Lock Screen. The answer carries run, the new run's id, for set_value, next_step and the rest. A routine that allows several at once gets one more run each time; give each a name ("Onboarding Acme") and the values its steps or name quote ({param:company}) so they can be told apart. One that runs one at a time and is already going answers alreadyGoing with the run that is going, unless restart is true.
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>"
},
"name": "start_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | What this run is called, if not the routine's name. Up to 80 characters. | |
| values | No | Values the run starts with, by key — the keys the routine's steps and name quote as {param:key}. Up to 20. | |
| restart | No | For a routine that runs one at a time and is already going: end that run and begin again. Only when the person asked to start over. | |
| 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. |