xlsx_post_slack
Upload an Excel workbook to a Slack channel as a file attachment, optionally with a message. Uses Slack's external upload flow for reliable file sharing.
Instructions
upload a local .xlsx file to a Slack channel as a file attachment, with an optional accompanying message. Token intake: set SLACK_BOT_TOKEN in the environment (recommended — keeps the token out of conversation logs). Alternatively pass slack_token as a tool argument (legacy; token will appear in MCP conversation history). Posts via Slack's 3-step external upload flow (files.getUploadURLExternal → upload → files.completeUploadExternal), which is the only sanctioned path as of 2024+.
USE WHEN: the user asks "post this workbook to #channel," "share this with the team in Slack," or any other outbound-file-to-Slack request. The agent has just produced or modified a workbook and wants to deliver it. Free tier — counts against the 10k/mo cap.
DO NOT USE WHEN: the file lives in a Slack channel and you want to READ it (that's the inbound Manual-Mode-Detector pattern, not this). Or when no Slack bot token is available — the user must have installed a Slack app with files:write scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | Yes | ||
| file_b64 | No | ||
| filename | No | ||
| message | No | ||
| slack_token | Yes | ||
| workbook_handle | No |