fetch_by_time
Fetch Kafka messages starting from the first offset at or after a given Unix timestamp in milliseconds. Specify topic, optional partition, and result limit to read historical data.
Instructions
Fetch messages from the first offset at or after a timestamp.
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>",
"timestamp_ms": "<timestamp_ms>"
},
"name": "fetch_by_time"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | Yes | Kafka topic name. | |
| max_results | No | ||
| partition_id | No | Partition to read from, or -1 for all partitions. | |
| timestamp_ms | Yes | Unix epoch time in milliseconds. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |