send_message
Posts a message or file to a Slack channel only after confirmation; previews the content first to verify.
Instructions
Send a message to a channel — ONLY when confirm=True.
With confirm=False (the default) nothing is sent: the tool echoes back the workspace, resolved channel, text, and any attachment so they can be verified first. Call again with confirm=True to actually post.
Pass file_path to upload a local file as an attachment. When both text and
file_path are given, the text becomes the file's comment so one call posts
both together. Uploading requires the files:write scope (and im:write to
attach to a DM via a user ID); check_access reports whether the token has them.
Args: workspace: configured workspace name. channel: channel ID (C…/G…/D…) or a name like '#general', or a user ID (U…/W…) to DM that person. text: the message body (Slack mrkdwn). May be empty when file_path is set. confirm: must be True to actually send; False returns a preview only. thread_ts: optional parent ts to reply in a thread. file_path: optional path to a local file to upload as an attachment. file_title: optional display title for the attachment (defaults to the filename).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| channel | Yes | ||
| confirm | No | ||
| file_path | No | ||
| thread_ts | No | ||
| workspace | Yes | ||
| file_title | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||