Start a run of something new
start_new_runStarts a run on the person's iPhone from steps you write, without making a routine of it: a checklist for today, a test plan, a one-off errand. Write it in the form how_to_write_a_routine describes. It begins at once with its card on the Lock Screen and stays out of the person's routines unless they keep it. Steps that would send anything off the phone or run one of the person's shortcuts arrive switched off, except a button whose webhook the person has allowed for you from now on: reuse its address, method and secret names exactly. A button with "onNext": true is pressed by the person's own Next on that step too; next_step does not press it.
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": {
"written": "<written>"
},
"name": "start_new_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| written | Yes | The run as one JSON object in the form, with "routineRun": 2, a name and its steps. JSON text is read too. | |
| 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. |