get_chat_context
Retrieve the chat context around a specific message by providing the chat name and message ID, with an adjustable window of surrounding messages.
Instructions
Return messages surrounding a specific message in a chat.
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": {
"chat_name": "<chat_name>",
"around_message_id": "<around_message_id>"
},
"name": "get_chat_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| window | No | ||
| chat_name | Yes | ||
| around_message_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |