call_service
Call a ROS2 service by name, passing optional arguments, to trigger actions like moving a robot with cmd_vel.
Instructions
Call a ROS2 service (e.g. cmd_vel to move the robot).
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": "call_service"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | ||
| service | Yes |