assistant_search_context
Search Slack messages, files, channels, and users to provide context for an AI assistant. Filter results by date, channel, content type, and more.
Instructions
Search messages, files, channels, and users to provide context to an AI assistant.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | ``score`` (relevance) or ``timestamp`` (recency). | |
| after | No | Only results after this UNIX timestamp. | |
| limit | No | Results per page (max 20). | |
| query | Yes | The search query or user prompt, e.g. ``"What is project gizmo?"``. | |
| before | No | Only results before this UNIX timestamp. | |
| cursor | No | Pagination cursor from a previous response's ``response_metadata.next_cursor``. | |
| sort_dir | No | Sort direction — ``asc`` or ``desc``. | |
| action_token | No | Required when calling with a bot token; not needed for user tokens. | |
| include_bots | No | Include messages from bots in results. | |
| channel_types | No | Comma-separated: ``public_channel``, ``private_channel``, ``mpim``, ``im``. | |
| content_types | No | Comma-separated: ``messages``, ``files``, ``channels``, ``users``. | |
| context_channel_id | No | Channel to bias results toward. | |
| include_context_messages | No | Return surrounding messages for each match. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||