Slack

SLACK_SEARCH_MESSAGES

Workspace‑wide Slack message search with date ranges and filters. Use `query` modifiers (e.g., in:#channel, from:@user, before/after:YYYY-MM-DD), sorting (score/timestamp), and pagination.

Remote slack

Other tools also called SLACK_SEARCH_MESSAGES? See providers with this name

Input Schema


            {
  "type": "object",
  "properties": {
    "page": {
      "type": "integer",
      "description": "Page number for manual pagination control. Cannot be used with auto_paginate - choose either automatic collection OR manual page control, not both.\nExamples:\n  1\n  2\n  3"
    },
    "sort": {
      "type": "string",
      "description": "Sort results by `score` (relevance) or `timestamp` (chronological).\nExamples:\n  \"score\"\n  \"timestamp\""
    },
    "count": {
      "type": "integer",
      "default": 1,
      "description": "Without auto_paginate: Number of messages per page (max 100). With auto_paginate: Total messages desired. Set count=500 to get 500 messages with automatic pagination handling.\nExamples:\n  20\n  50\n  100\n  500\n  1000"
    },
    "query": {
      "type": "string",
      "description": "Search query supporting various modifiers for precise filtering:\n                \n        **Date Modifiers:**\n        - `on:YYYY-MM-DD` - Messages on specific date (e.g., `on:2025-09-25`)\n        - `before:YYYY-MM-DD` - Messages before date\n        - `after:YYYY-MM-DD` - Messages after date  \n        - `during:YYYY-MM-DD` or `during:month` or `during:YYYY` - Messages during day/month/year\n\n        **Location Modifiers:**\n        - `in:#channel-name` - Messages in specific channel\n        - `in:@username` - Direct messages with user\n\n        **User Modifiers:**\n        - `from:@username` - Messages from specific user\n        - `from:botname` - Messages from bot\n\n        **Content Modifiers:**\n        - `has:link` - Messages with links\n        - `has:file` - Messages with files\n        - `has::star:` - Starred messages\n        - `has::pin:` - Pinned messages\n\n        **Special Characters:**\n        - `\"exact phrase\"` - Search exact phrase\n        - `*wildcard` - Wildcard matching\n        - `-exclude` - Exclude words\n\n        **Combinations:** Mix modifiers like `\"project update\" on:2025-09-25 in:#marketing from:@john`\nExamples:\n  \"on:2025-09-25\"\n  \"after:2025-01-01 before:2025-12-31\"\n  \"during:september\"\n  \"during:2025-09-25\"\n  \"product launch in:#marketing\"\n  \"bug report from:@jane has:file\"\n  \"\\\"meeting notes\\\" on:2024-07-20\"\n  \"urgent -resolved in:#support\"\n  \"\\\"project update\\\" on:2025-09-25 from:@john in:#team-updates\"\n  \"has:link during:august from:@bot\"\n  \"deployment after:2025-09-20 in:#engineering\""
    },
    "sort_dir": {
      "type": "string",
      "description": "Sort direction: `asc` (ascending) or `desc` (descending).\nExamples:\n  \"asc\"\n  \"desc\""
    },
    "highlight": {
      "type": "boolean",
      "description": "Enable highlighting of search terms in results.\nExamples:\n  true\n  false"
    },
    "auto_paginate": {
      "type": "boolean",
      "default": false,
      "description": "When enabled, 'count' becomes the total messages desired instead of per-page limit. System automatically handles pagination to collect the specified total. Cannot be used with 'page' parameter - choose either automatic collection or manual page control. Usage: If you fetched 100 messages but pagination shows 500 total available, set auto_paginate=true and count=500 to get all results at once.\nExamples:\n  true\n  false"
    }
  }
}
          

Provider

Slack →