App Logo
slack.com

Upload Slack text file

Upload a text file/snippet (its content given inline) to a channel via Slack's file-upload flow. For sharing logs, code or notes; binary files are out of scope. Returns the file id, name and permalink. Requires login.

Input

channel required

Channel name/#name or id (C…).

content required

The text content of the file.

title optional

Display title. Defaults to the filename.

comment optional

Optional message posted with the file.

filename optional

File name, e.g. 'notes.txt'. Default 'file.txt'.

workspaceDomain optional

Workspace host, e.g. acme.slack.com. Defaults to the active workspace.

Output

id required
ok required
name optional
title optional
permalink optional

FAQ

Upload a text file/snippet (its content given inline) to a channel via Slack's file-upload flow. For sharing logs, code or notes; binary files are out of scope. Returns the file id, name and permalink. Requires login.
Required: channel, content. Optional: title, comment, filename, workspaceDomain.
It returns id, ok, name, title, permalink.
Yes. It acts as you on slack.com: on your own Chrome it reuses your session, and on a Reduck-hosted browser it loads the slack.com cookies saved by the Reduck extension.
It makes changes on slack.com, like sending, posting or booking something.
Ask an AI agent connected to Reduck to run reduck/slack.com/upload_file, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/slack.com/upload_file
It is part of Reduck's official curated catalogue.

Start building not clicking