Put a button that waits on a run's step
add_step_buttonPuts one button on a step of a run that is going — the step named, or the step in hand — for the person to press on the step's card, the Lock Screen or the watch. It is one of three, in the written form how_to_write_a_routine describes: putAside (puts the step aside until a moment and lets the run go on: "followUp" for the step's own follow-up, the name of one of the person's Not now answers, or {"days": 2, "at": "10:00"} / {"hours": 3}), deadline (done by or begun by so long after the press: {"hours": 2} or {"at": "17:00", "kind": "startBy"}) or checkIn (a question asked once or every so often until it is answered: {"every": {"days": 3}, "question": "Has it arrived?"}, "about": "run" for the run). A "title" beside it is the words on the button. The button is this run's alone, and the person decides whether the routine keeps it. To put one on every run of a routine, change the routine instead.
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": {
"run": "<run>",
"button": "<button>"
},
"name": "add_step_button"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run | Yes | The run's id. | |
| step | No | The step's id, if not the step the run is on. | |
| button | Yes | One button: {"putAside": …}, {"deadline": …} or {"checkIn": …}, with "title" beside it if the words on it should not be the app's own. JSON text is read too. |
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. |