robotraconteur_read_events
Reads events sent by a Robot Raconteur service, oldest first, optionally filtered by name or limit, and can clear returned events so later calls fetch newer ones.
Instructions
Return events a service has sent, such as a fault, a trigger, or a message arriving, oldest first, with now, the server's current time, from the same clock as the events' times. Events are collected once the service has been used by any tool, including robotraconteur_describe, so earlier ones are not seen. To wait for an event rather than checking repeatedly, use a wait_until step of robotraconteur_start_sequence. With clear false, this only looks: the events stay, and a wait_until still sees them and takes only those it matches.
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": {
"service": "<service>"
},
"name": "robotraconteur_read_events"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Only return events with this name, such as new_message | |
| clear | No | Remove the returned events from the buffer, so the next call returns the ones after them. The default is true | |
| limit | No | The most events to return, oldest first. The default is 50 | |
| service | Yes | Name of the service, as listed by robotraconteur_discover |