search_channel_messages
Search within a specific Slack channel for messages matching a query. Sort results by relevance or newest timestamp, and limit the number returned.
Instructions
Search for messages within a specific channel.
Uses Slack's search API with an 'in:' filter.
Args: channel_id: The channel ID to search within. query: The search query text. sort: Sort results by "timestamp" (newest first) or "score" (relevance). limit: Max number of results to return (default 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": {
"channel_id": "<channel_id>",
"query": "<query>"
},
"name": "search_channel_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | timestamp | |
| limit | No | ||
| query | Yes | ||
| channel_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |