slack_upload_file
Upload a local file to a Slack channel, DM, or thread as yourself, with an optional comment and title.
Instructions
Upload a local file to a Slack channel/DM AS THE USER, with an optional comment. Same style gate as slack_send_message applies to initial_comment and title. channel_id: C.../G.../D..., or a user id U... to upload into the DM with that person (your own id = your self-DM; needs im:write). thread_ts: upload as a thread reply. file_path: absolute path inside SLACK_FILE_ROOTS (default: home and temp folders; hidden files and ~/Library refused). title: file title, defaults to the filename.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| file_path | Yes | ||
| thread_ts | No | ||
| workspace | Yes | ||
| channel_id | Yes | ||
| allow_promise | No | ||
| initial_comment | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||