send_ros2_action_goal
Sends a goal to a ROS 2 action server, specifying the action name, type, and goal message to trigger a task.
Instructions
Sends a goal to a ROS 2 action.
Args:
action_name: Name of the action
action_type: Action type (e.g., example_interfaces/action/Fibonacci)
goal: Goal message (e.g., "{order: 5}")
Example:
action_name: "/fibonacci"
action_type: "example_interfaces/action/Fibonacci"
goal: "{order: 5}"
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": {
"action_name": "<action_name>",
"action_type": "<action_type>",
"goal": "<goal>"
},
"name": "send_ros2_action_goal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | Yes | ||
| action_name | Yes | ||
| action_type | Yes |