Slack File
When you see a Slack file you cannot open — a link a colleague pasted, a
file posted in another channel, [Slack: ... could not be read] — fetch it
yourself. Never ask a colleague to paste the text.
bash execute.sh get https://acme.slack.com/files/U0ELLA1234/F0ABC12345/longform-en.md
bash execute.sh get F0ABC12345
bash execute.sh get https://acme.slack.com/archives/C0MKTG1234/p1696771234567890 # a message with a file
bash execute.sh get F0ABC12345 --out /path/to/project/longform-en.md
It tries this machine's Slack bots first (yours, the uploader's, the
channel's agents, the workspace bot), then Crewly Cloud, which holds every
bot of your account on every machine.
Output: { "path", "name", "mimetype", "size", "via", "preview"? }.
path is where the file is saved (~/.crewly/tmp/slack-files/ unless
--out is given); preview holds the first lines of a text file. Read
the full file at path.
| Error code | Meaning / what to do |
|---|---|
| not_visible | No bot of your account is in the file's channel. Ask the owner to invite you (or the Crewly app) there. |
| foreign_workspace | The link is from a Slack workspace your account has not connected. |
| file_deleted | The file was deleted. |
| too_large | Over 25 MB for this command. A file the owner attached to a message is downloaded for you up to 1 GB; if it is still too big, or not on Slack, get it with the request-file skill (an upload link for the owner's phone). Do not ask the owner to compress it or use Drive. |
| no_file_in_message | The message link has no file attached. |