get_message_context
Retrieve a set number of messages before and after a specific message in a Rocket.Chat channel to provide context for the target message.
Instructions
Get N messages before and after a target message (target flagged is_target).
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": {
"channel": "<channel>",
"message_id": "<message_id>"
},
"name": "get_message_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | No | ||
| before | No | ||
| channel | Yes | ||
| compact | No | ||
| message_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||