Publish a routine under a short code
publish_routinePublishes a routine under an eight-character code, at routinerun.com/c/: a short address for a message, a QR code or an NFC tag. Anybody with the code can read it — the page lists the steps, and on an iPhone they open one at a time in the App Clip with nothing to install. Only the steps go up: the name, the descriptions, minutes, and buttons that open a link or copy words; actions, triggers, values, notes and dates come off. With them goes an identifier of the phone that publishes, the same on every code it publishes, so a stranger can block that phone's codes and nobody else's. Use it only when the person asked to publish or share a routine with someone. Nothing is public until the person says so on their phone: it shows them exactly what would go up, with Publish and Drop. The answer is the command's id and a status; command_status says done with the address once they publish. Give code to replace a routine this connection published before; the address stays the same.
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": "publish_routine"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | A code this connection published before, to replace what it holds. Leave it out for a new code. | |
| written | Yes | The routine as 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 |
|---|---|---|---|
| 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. |