get_package_dependencies
Identify direct and transitive dependencies for any ROS2 package, plus reverse dependencies, with optional type filtering.
Instructions
Get a package's dependencies (from package.xml) and, conversely, which
packages depend on it. depend_types filters to a subset of
depend/build_depend/exec_depend/test_depend/buildtool_depend (default: all).
transitive=True walks the full dependency closure instead of one hop.
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>"
},
"name": "get_package_dependencies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| transitive | No | ||
| depend_types | No | ||
| package_name | Yes | ||
| workspace_root | No |