files_upload_v2
Upload file content directly to Slack by providing the file contents as a string, with optional filename, title, channel, comment, and thread settings.
Instructions
Upload file content (v2).
Runs Slack's recommended upload flow (get upload URL, upload, complete) via the slack_sdk helper. Takes the file contents directly — it does not read from the host filesystem.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Title of the file shown in Slack. | |
| channel | No | ID of the channel to share the uploaded file into (e.g. ``C0123``). | |
| content | Yes | File contents to upload as a string. | |
| filename | No | Name of the file (e.g. ``notes.txt``). | |
| thread_ts | No | Timestamp of the parent message to share the file into as a thread reply (e.g. ``1700000000.0001``). | |
| snippet_type | No | Syntax type of a snippet being uploaded (e.g. ``python``). | |
| initial_comment | No | Message text to post alongside the file. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||