Slack

Slack_GetThreadMessages

Get messages in a Slack thread. A thread is a collection of messages grouped together as replies to a parent message. This tool retrieves all messages in a specific thread, identified by the parent message's timestamp (thread_ts). 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 thread 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 datetime arguments with the default None to get all thread messages without date/time filtering.

Remote slack

Remote (network-hosted)

Other tools also called Slack_GetThreadMessages? 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 containing the thread."
    },
    "user_ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The IDs of the users in the conversation containing the thread."
    },
    "thread_ts": {
      "type": "string",
      "description": "The timestamp of the parent message that starts the thread. This is the 'ts' field from the parent message."
    },
    "usernames": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The usernames of the users in the conversation containing the thread. Prefer providing user_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 containing the thread. Prefer providing a conversation_id, when available, since the performance is better."
    },
    "conversation_id": {
      "type": "string",
      "description": "The ID of the conversation containing the thread. Provide exactly one of conversation_id OR channel_name 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 →