Make a link that opens a routine in the app
routine_linkChecks a routine written in the form how_to_write_a_routine describes and returns a link. Opened on an iPhone with Routine Run, it shows the routine on the app's review screen, where the person saves it or not. Nothing is kept here. Give the person the link and the JSON too, in case the link is opened somewhere else.
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": "routine_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| routine | Yes | The routine: one JSON object in the form, with "routineRun": 2, a name and its steps. JSON text is read too. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | The routine, for the person to copy when there is no link or it is opened somewhere else. | |
| link | Yes | Opens the routine on the app's review screen; null when the routine is too long for a link. |