cancel_action_goal
Stop a previously sent ROS 2 action goal by providing its action name and goal ID, returning confirmation that the cancellation request was sent.
Instructions
Cancel a previously sent ROS 2 action goal.
Rejected when ROSBRIDGE_MCP_READONLY is set.
Args: action_name: The action the goal was sent to, e.g. "/navigate_to_pose". goal_id: The goal_id returned by send_action_goal.
Returns {"cancel_sent": true, "action", "goal_id"}. The cancellation outcome (status "canceled") is reported by the action server via the goal's result. Requires rosbridge_suite with ROS 2 action support; on an older rosbridge the tool returns an error advising an upgrade.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal_id | Yes | ||
| action_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||