Set a value on a run
set_valueKeeps a named value on a run — a reading, a count, who or what the run is about — under key, which its steps and its name quote as {param:key}. Use it when the person tells you something the run should carry, or for a startsWith value said after the start. It is read the way a typed value is: "42" is a number, true or false a yes or no, a link a link, anything else words. An empty value removes it. The answer is the command's id and a status.
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>",
"key": "<key>",
"value": "<value>"
},
"name": "set_value"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The value's name. | |
| run | Yes | The run's id. | |
| value | Yes | Words, a number, or true or false. Empty to remove it. |
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. |