How to write a routine
how_to_write_a_routineThe JSON form Routine Run reads a routine in: every field, every action a step can take, and what a routine that works in the app has. With part "examples", three routines written in it and the shortcuts the app adds in one tap. Use it when writing a routine for routine_link, start_new_run or propose_new_routine.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "how_to_write_a_routine"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| part | No | "form", the fields and actions, if left out; "examples", three routines in the form and the one-tap shortcuts. |