run_ros_launch
Launch a ROS 2 package launch file by providing package and launch file names, with support for optional arguments.
Instructions
Launch a ROS 2 package launch file
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": {
"package_name": "<package_name>",
"launch_file": "<launch_file>"
},
"name": "run_ros_launch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Additional arguments to pass to the launch file | |
| launch_file | Yes | The launch file name (without .launch.py) | |
| package_name | Yes | The ROS 2 package name |