get_topic_info
Inspect a ROS 2 topic's message type, publisher and subscriber counts, and QoS settings to confirm types or diagnose publish/receive mismatches. Use verbose for endpoint QoS details.
Instructions
获取指定话题的详情:消息类型、发布者数、订阅者数,以及 QoS 配置。
何时用:确认话题类型;排查"发了没人收/收不到"类问题时看双方数量与 QoS。 参数 topic:话题全名,以 / 开头(如 /chatter),大小写敏感; verbose=True 时附带每个端点的 QoS 详情(推荐)。 返回:CLI 原始输出。失败时返回 error(常见:话题不存在)。
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": {
"topic": "<topic>"
},
"name": "get_topic_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | Yes | ||
| verbose | No |