robotraconteur_call_function
Calls a function on a discovered Robot Raconteur service using positional or named arguments, with optional timeout handling for generator calls.
Instructions
Call a function of a service. Arguments are given in order as an array, or by name as an object. Fields left out of a structure are filled with zero or empty values. A function that streams results as a generator is run to completion, and its last results are returned. The call waits until the generator finishes, so it cannot be stopped partway; to be able to stop a long generator, such as a trajectory, run it as a call_function step of robotraconteur_start_sequence, which robotraconteur_cancel_sequence aborts. Tool calls sent together may run at the same time, in any order. To run calls one after another, send them one at a time, or use robotraconteur_start_sequence for exact order and timing.
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": "<name>"
},
"name": "robotraconteur_call_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the function, as listed by robotraconteur_describe | |
| object | No | Path to a sub object, such as arm or arm.tool[0]. Leave unset for the root object | |
| service | Yes | Name of the service, as listed by robotraconteur_discover | |
| arguments | No | An array of arguments, or an object keyed by parameter name | |
| timeout_s | No | For a generator, abort after this many seconds. The default is 60 | |
| generator_inputs | No | For a generator that takes a value at each step, the values to send |