Slack

SLACKBOT_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 slackbot

Other tools also called SLACKBOT_SEARCH_MESSAGES? See providers with this name

Input Schema


            {
  "type": "object",
  "properties": {
    "page": {
      "type": "integer",
      "title": "Page",
      "examples": [
        1,
        2,
        3
      ],
      "description": "Page number for manual pagination control. Cannot be used with auto_paginate - choose either automatic collection OR manual page control, not both."
    },
    "sort": {
      "type": "string",
      "title": "Sort",
      "examples": [
        "score",
        "timestamp"
      ],
      "description": "Sort results by `score` (relevance) or `timestamp` (chronological)."
    },
    "count": {
      "type": "integer",
      "title": "Count",
      "default": 1,
      "examples": [
        20,
        50,
        100,
        500,
        1000
      ],
      "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."
    },
    "query": {
      "type": "string",
      "title": "Query",
      "examples": [
        "on:2025-09-25",
        "after:2025-01-01 before:2025-12-31",
        "during:september",
        "during:2025-09-25",
        "product launch in:#marketing",
        "bug report from:@jane has:file",
        "\"meeting notes\" on:2024-07-20",
        "urgent -resolved in:#support",
        "\"project update\" on:2025-09-25 from:@john in:#team-updates",
        "has:link during:august from:@bot",
        "deployment after:2025-09-20 in:#engineering"
      ],
      "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`"
    },
    "sort_dir": {
      "type": "string",
      "title": "Sort Dir",
      "examples": [
        "asc",
        "desc"
      ],
      "description": "Sort direction: `asc` (ascending) or `desc` (descending)."
    },
    "highlight": {
      "type": "boolean",
      "title": "Highlight",
      "examples": [
        true,
        false
      ],
      "description": "Enable highlighting of search terms in results."
    },
    "auto_paginate": {
      "type": "boolean",
      "title": "Auto Paginate",
      "default": false,
      "examples": [
        true,
        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."
    }
  }
}
          

Provider

Slack →