monitor_topic
Collect messages from a ROS 2 topic over a specified time or message count to observe data flow and diagnose problems.
Instructions
Monitor a ROS 2 topic for a specified duration. Collects messages over time.
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_name": "<topic_name>"
},
"name": "monitor_topic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic_name | Yes | The name of the topic to monitor | |
| message_count | No | Stop after collecting this many messages (whichever comes first) | |
| duration_seconds | No | How long to monitor (max 30 seconds) |