kafka__ListTopicPartitions
Retrieves the partition list for a Kafka topic using the instance ID, project ID, and topic, with optional limit and offset for paginated results.
Instructions
[KAFKA] 查询Topic的分区列表
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": {
"instance_id": "<instance_id>",
"project_id": "<project_id>",
"topic": "<topic>"
},
"name": "kafka__ListTopicPartitions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | 查询返回记录的数量限制 | |
| topic | Yes | 主题 | |
| offset | No | 偏移量,表示查询该偏移量后面的记录 | |
| project_id | Yes | 项目ID,获取方式请参见[获取项目ID](kafka-api-0036212547.xml)。 | |
| instance_id | Yes | 实例id |