Copy a Slack search result to your clipboard as a single YAML document, ready to paste into an LLM prompt.
Pasting Slack threads into ChatGPT, Claude, or any LLM is common — but copying messages by hand loses formatting and breaks across pagination. slack-xport automates the whole flow so you can focus on the prompt instead of the copying.
- Walks every page of a Slack search automatically
- Expands "Show more" truncations (including those inside quoted blocks)
- Preserves Markdown formatting: bold, italic, code, code blocks, lists, links, images
- Captures file/image attachments as Markdown image syntax
- Copies the result to your clipboard with one click
- Run a message search at
app.slack.com - Click the slack-xport toolbar icon
- Click Export & Copy
The extension navigates to page 1 if needed, walks every page, expands truncations, and auto-copies the YAML to your clipboard. If the result exceeds 1 MB you are asked to confirm before copying. A "Download as YAML file" link is available as a fallback.
- date: 2024-01-15 Mon 10:30:00
channel: general
sender: John Doe
message: |
A multi-line message.
Line breaks, **bold**, `inline code`, and code blocks
are all preserved.
- date: 2024-01-15 Mon 10:31:00
channel: random
sender: Jane Doe
message: |
Single-line messages stay readable.
YAML's | block scalar handles multi-line content cleanly. Quotes are omitted when not strictly required, keeping token count low.
- Clone this repository
- Open
chrome://extensionsin Chrome - Enable "Developer mode"
- Click "Load unpacked" and select the project folder
Everything runs locally in your browser. No data is sent to any external server. No analytics, no tracking. The only permissions used are activeTab and host permission for https://app.slack.com/*.
Built on top of the DOM scraping logic from xshoji/slack-search-result-exporter, an MIT-licensed bookmarklet that solves the same problem.
MIT — see LICENSE.

