browse_message
Peek at the first message on an IBM MQ queue without removing it. Use it for inspection; repeated calls return the same message due to API limits.
Instructions
浏览队列上的第一条消息,不会移除它。
受 MQ REST API 限制,一次只能看到队首那一条:该接口没有游标分页, 连续调用会反复返回同一条消息。需要遍历整个队列请改用原生 MQ 客户端。 要取走消息(并从队列移除)请用 get_message。
Args: qmgr: 队列管理器名称,例如 QM1 queue: 队列名称,例如 DEV.QUEUE.1
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": {
"qmgr": "<qmgr>",
"queue": "<queue>"
},
"name": "browse_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qmgr | Yes | ||
| queue | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |