Slack

Slack_GetMessages

Get messages in a Slack Channel, DM (direct message) or MPIM (multi-person) conversation. Provide exactly one of: - conversation_id; or - channel_name; or - any combination of user_ids, usernames, and/or emails. To filter messages by an absolute datetime, use 'oldest_datetime' and/or 'latest_datetime'. If only 'oldest_datetime' is provided, it will return messages from the oldest_datetime to the current time. If only 'latest_datetime' is provided, it will return messages since the beginning of the conversation to the latest_datetime. To filter messages by a relative datetime, use 'oldest_relative' and/or 'latest_relative' with numeric `DD:HH:MM` offsets only. Convert relative phrases to `DD:HH:MM` before calling this tool. If only 'oldest_relative' is provided, it will return messages from the oldest_relative to the current time. If only 'latest_relative' is provided, it will return messages from the current time to the latest_relative. Do not provide both 'oldest_datetime' and 'oldest_relative' or both 'latest_datetime' and 'latest_relative'. Leave all arguments with the default None to get messages without date/time filtering

Remote slack

Remote (network-hosted)

Other tools also called Slack_GetMessages? See providers with this name

Input Schema


            {
  "type": "object",
  "properties": {
    "limit": {
      "type": "integer",
      "description": "The maximum number of messages to return. Defaults to 20. Maximum is 100."
    },
    "emails": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The emails of the users in the conversation to get messages from."
    },
    "user_ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The IDs of the users in the conversation to get messages from."
    },
    "usernames": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The usernames of the users in the conversation to get messages from. Prefer providinguser_ids and/or emails, when available, since the performance is better."
    },
    "next_cursor": {
      "type": "string",
      "description": "The cursor to use for pagination."
    },
    "channel_name": {
      "type": "string",
      "description": "The name of the channel to get messages from. Prefer providing a conversation_id, when available, since the performance is better."
    },
    "conversation_id": {
      "type": "string",
      "description": "The ID of the conversation to get messages from. Provide exactly one of conversation_id OR any combination of user_ids, usernames, and/or emails."
    },
    "latest_datetime": {
      "type": "string",
      "description": "The latest message to include in the results, specified as a datetime object in the format 'YYYY-MM-DD HH:MM:SS' or ISO 8601."
    },
    "latest_relative": {
      "type": "string",
      "description": "The latest message to include in the results, specified as a time offset from the current time. Use only the numeric 'DD:HH:MM' format; convert relative phrases to that format before calling this tool."
    },
    "oldest_datetime": {
      "type": "string",
      "description": "The oldest message to include in the results, specified as a datetime object in the format 'YYYY-MM-DD HH:MM:SS' or ISO 8601."
    },
    "oldest_relative": {
      "type": "string",
      "description": "The oldest message to include in the results, specified as a time offset from the current time. Use only the numeric 'DD:HH:MM' format; convert relative phrases to that format before calling this tool."
    }
  }
}
          

Provider

Slack →