robotraconteur_start_sequence
Runs timed step sequences on the server so actions execute at exact times without model round trips, and returns each sequence_id at once for status tracking.
Instructions
Start one or more timed sequences of steps, and return at once with each one's sequence_id. The steps run in the server without a round trip through the model, so their timing is exact. Before writing your first sequence, read robotraconteur_help topics actions, timing, and stopping, and others as needed, such as waiting, conditions, on_stop, skipping, events, and examples, in one call. Essentials: steps of a sequence run one at a time, in order. Sequences in one call start together on one clock, and every step is checked before any starts, so nothing starts if any step is wrong. A step with at_s or at starts on time or fails. wait_until waits for a condition on a wire, property, or event. stop_when watches in the background and stops its sequence when its condition is met; to stop every sequence of a call on one condition, use the call's stop_when. An active stop_when, including the call's, holds only the events it matches, so the stop wins and other events still reach wait_until. on_stop steps clean up after any early end and cannot wait. The first step of any sequence to match an event takes it. Step arguments are fixed when the sequence starts: a step cannot use an earlier step's result, so branch on it with only_if, or read it and start a new sequence. Follow sequences with robotraconteur_sequence_status. A sequence keeps running if the conversation is interrupted. A cancel arrives a turn late, so put planned stops in max_duration_s or stop_when. Anything that must interrupt a running sequence, such as an operator request, a fault, or a sensor limit, needs a stop_when in that sequence or the call's stop_when, with on_stop to make the device safe; checked only between sequences, it waits until the running step ends.
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": {
"sequences": "<sequences>"
},
"name": "robotraconteur_start_sequence"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| until | No | With wait_s, return as soon as the step with this label has a result, rather than when the sequences end. until_met says whether it did | |
| detail | No | With wait_s, which results to give for each sequence, as robotraconteur_sequence_status does. The default is compact | |
| wait_s | No | Wait up to this many seconds, counted from the start, for all the sequences to finish, and answer for each as robotraconteur_sequence_status does | |
| sequences | Yes | The sequences to start, usually one. Several start at the same instant on one clock, such as to move several robots together. Each runs on its own once started, with its own sequence_id, unless stop_together is set | |
| stop_when | No | A stop_when for the whole call: if its condition is met, every sequence still running is stopped at once and runs its own on_stop. It holds only the events it matches, so the stop wins and other events still reach the wait_until steps. Use it, not one stop_when in each sequence, to stop a whole show on one message or fault. robotraconteur_help topic: stopping | |
| stop_together | No | If true, when any of these sequences ends without completing, every other one still running is stopped at once, and runs its own on_stop. robotraconteur_help topic: stopping |