Read and retrieve messages from Slack threads. Use when the user wants to view, analyze, or extract conversation history from a Slack thread by providing a channel ID and thread timestamp, or a Slack message URL.
This skill reads all messages from a Slack thread and outputs them as structured JSON.
Option 1: Using Slack URL
prbot slack read-thread -u "<SLACK_MESSAGE_URL>" [-l <NUMBER>]
Option 2: Using Channel ID and Timestamp
prbot slack read-thread -c <CHANNEL_ID> -t <THREAD_TS> [-l <NUMBER>]
-u, --url (required if not using channel+ts): Slack message URL-l, --limit (optional): Maximum number of messages to retrieve (default: 100)-c, --channel (required if not using url): Slack channel ID (e.g., C123456789)-t, --ts (required if not using url): Thread timestamp (parent message timestamp)-l, --limit (optional): Maximum number of messages to retrieve (default: 100)Note: You must use either --url OR --channel + --ts, not both.
Returns JSON array with each message containing:
username: Display name of the message authortext: Original Slack-formatted textmarkdown: Converted markdown text (with user mentions, formatting, etc.)# Read thread using Slack URL (easiest)
prbot slack read-thread -u "https://workspace.slack.com/archives/C123/p1234567890"
# Read thread using Slack URL with thread_ts parameter
prbot slack read-thread -u "https://workspace.slack.com/archives/C123/p1234567890?thread_ts=1234567890.123456"
# Read thread using channel ID and timestamp
prbot slack read-thread -c C07V123ABC -t 1234567890.123456
# Read first 20 messages only
prbot slack read-thread -c C07V123ABC -t 1234567890.123456 -l 20
The tool automatically parses various Slack URL formats:
https://WORKSPACE.slack.com/archives/CHANNEL/pTIMESTAMPhttps://WORKSPACE.slack.com/archives/CHANNEL/pTIMESTAMP?thread_ts=THREAD_TShttps://app.slack.com/client/TEAM/CHANNEL/TIMESTAMPchannels:history or groups:history Slack OAuth scopeEdit PDFs with natural-language instructions using the nano-pdf CLI.
Control Sonos speakers (discover/status/play/volume/group).
Terminal Spotify playback/search via spogo (preferred) or spotify_player.
Capture frames or clips from RTSP/ONVIF cameras.
CLI to manage emails via IMAP/SMTP. Use `himalaya` to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple accounts and message composition with MML (MIME Meta Language).
Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.
Category:tools