kafka_sample_messages
Samples messages from a Kafka topic read-only without committing offsets, using latest, earliest, or specific-offset strategies for safe inspection.
Instructions
从指定 Kafka 主题以零提交位移方式只读采样消息(支持 latest/earliest/offset 策略、自适应解码与大报文截断保护)
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": "kafka_sample_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| topic | Yes | ||
| offset | No | ||
| strategy | No | latest | |
| partition | No | ||
| connection | No | ||
| max_bytes_per_message | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||