search_messages
Search messages in a room by keyword, avoiding the need to page through history. Specify the max results to return.
Instructions
Search messages in a room by keyword. Much cheaper than paging through history with get_channel_messages when looking for a specific message.
Args:
room_id: Room ID or room name of the channel/group/DM to search in
query: Search keyword(s)
count: Max results to return (default: 20, max: 100)
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": {
"room_id": "<room_id>",
"query": "<query>"
},
"name": "search_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| room_id | Yes | ||
| query | Yes | ||
| count | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |