robotraconteur_sequence_status
Report a sequence's state (running, completed, failed, stopped, timed out) and its step results, optionally waiting up to 30 seconds for it to finish.
Instructions
Report the state of a sequence and the results of its steps so far: running, completed, failed (a step failed, including a wait_until that reached its timeout_s), cancelled, stopped (a stop_when step's condition was met, given in stopped_by), or timed_out (the sequence ran past max_duration_s). Use wait_s to check partway through a running sequence. wait_s counts from when this call arrives, not from the start of the sequence, so to check at a set time in the sequence, compare elapsed_s. current_step is the step running, or the next one with waiting true while the sequence waits for its starts_at_s. A sequence that was cancelled, stopped, or timed out gives stopped, saying why and where it stopped, and one that did not complete gives not_run, how many step runs never started. started is when the sequence started, ended is when it ended, and now is the server's current time, all from the same clock, and each result gives its own started as an absolute time too. elapsed_s is how long the sequence has run, and stops when it ends, and each result has the step index, when it started in seconds from that time, how long it took, how late it started if it was late, and its result or error. Set wait_s to wait for the sequence to finish, up to 30 seconds, rather than calling repeatedly. Results are returned in order, and a long list is split over calls: pass next_index as from_index to get the rest, or only the new ones. Without sequence_id, lists the sequences, with now, the server's current time.
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": "robotraconteur_sequence_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Without sequence_id, the most sequences to list, newest first. The default is 10 | |
| until | No | With wait_s, return as soon as the step with this label has a result, whether it ran, failed, or was skipped, rather than waiting for the sequence to end. until_met says whether it did | |
| detail | No | compact, the default, leaves out steps that succeeded on time without returning a value and have no label, and gives their number in omitted. full gives every step, such as to check the timing of each one | |
| wait_s | No | Wait up to this many seconds for the sequence to finish before answering | |
| from_index | No | Return results from this index. The default is 0 | |
| sequence_id | No | The sequence, from robotraconteur_start_sequence |