correlate_tool
Correlates ROS2 log entries with bag topic messages within a configurable time window to reveal topic data around error events.
Instructions
Correlate log entries with bag topic messages within a time window.
Shows what was happening on ROS2 topics around the time of log events (typically errors). Can correlate logs from one run with a bag from a different run if they share the same time window.
Args: run_id: Run ID containing the log files. bag_run_id: Run ID containing the bag file. Defaults to run_id if not provided (same run has both logs and bag). severity: Log severity filter (default "ERROR,FATAL"). window_ms: Time window in milliseconds (default 100ms, symmetric). topics: Comma-separated topic names to include (default: all topics). limit: Maximum correlations to return. Defaults to MCP_ROS2_LOGS_MAX_RESULTS (100). offset: Number of correlations to skip (default 0). log_dir: Optional path to log directory override.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes | ||
| bag_run_id | No | ||
| severity | No | ERROR,FATAL | |
| window_ms | No | ||
| topics | No | ||
| limit | No | ||
| offset | No | ||
| log_dir | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |