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).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | timestamp | |
| limit | No | ||
| query | Yes | ||
| channel_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |