upload_file
Upload text content or disk files to one or more Slack channels. Optionally set a title, filename, or attach to a thread.
Instructions
Upload a file to one or more Slack channels. Provide either 'content' (UTF-8 text only) or 'file_path' (disk path for binary or text files), not both.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Optional display title for the file | |
| content | No | File content as text (mutually exclusive with file_path) | |
| channels | Yes | List of channel IDs to share the file in (max 100) | |
| filename | Yes | Name for the uploaded file | |
| file_path | No | Path to file on disk (mutually exclusive with content) | |
| thread_ts | No | Optional thread timestamp to attach upload to a thread |