rocketmq__ListMessages
Query RocketMQ messages by topic, message ID, key, or time range, with offset and limit controls for locating and reviewing message records.
Instructions
[ROCKETMQ] 查询消息。
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": {
"engine": "<engine>",
"instance_id": "<instance_id>",
"project_id": "<project_id>",
"topic": "<topic>"
},
"name": "rocketmq__ListMessages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | 消息的key。 | |
| limit | No | 查询数量。 | |
| topic | Yes | 主题名称。 | |
| engine | Yes | 消息引擎。 | reliability |
| msg_id | No | 消息ID。 | |
| offset | No | 偏移量,表示从此偏移量开始查询, offset大于等于0。 | |
| end_time | No | 结束时间(不通过msg_id精确查询消息时,此参数必填)。 | |
| project_id | Yes | 项目ID,获取方式请参见[获取项目ID](hrm-api-0011.xml)。 | |
| start_time | No | 开始时间(不通过msg_id精确查询消息时,此参数必填)。 | |
| instance_id | Yes | 实例ID。 |