kafka__ResetMessageOffsetWithEngine
Reset a Kafka consumer group's message offset by partition, timestamp, or specific offset; stop the group's clients first because online resets are not supported.
Instructions
[KAFKA] Kafka实例不支持在线重置消费进度。在执行重置消费进度之前,必须停止被重置消费组客户端。
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": {
"group": "<group>",
"instance_id": "<instance_id>",
"partition": "<partition>",
"project_id": "<project_id>"
},
"name": "kafka__ResetMessageOffsetWithEngine"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group | Yes | 消费组名称。 | |
| topic | No | topic名称。 | |
| partition | Yes | 分区编号,默认值为-1,若传入值为-1,则重置所有分区。 | |
| timestamp | No | 重置消费进度到指定时间,格式为unix时间戳,单位为毫秒。 | |
| project_id | Yes | 项目ID。 | |
| instance_id | Yes | 实例ID。 | |
| message_offset | No | 重置消费进度到指定偏移量。 |