Home / Servers / Slack API / files_upload
Uploads or creates a file.
An MCP tool from the Slack API server, hosted on mcp.hjlabs.in.
Uploads or creates a file. [POST /files.upload]
Name on the gateway: slack_api__files_upload · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
token | string | Authentication token. Requires scope: files:write:user |
file | string | File contents via multipart/form-data. If omitting this parameter, you must… |
content | string | File contents via a POST variable. If omitting this parameter, you must… |
filetype | string | A file type identifier. |
filename | string | Filename of file. |
title | string | Title of file. |
initial_comment | string | The message text introducing the file in specified channels. |
channels | string | Comma-separated list of channel names or IDs where the file will be shared. |
thread_ts | number | Provide another message's ts value to upload this file as a reply. Never use a… |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "slack_api__files_upload",
"arguments": {}
}Or connect the Slack API server directly, which lists 174 tools including this one:
claude mcp add --transport http hj-slack-api https://mcp.hjlabs.in/mcp/slack-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the uploads or creates a file. tool with token set to ….
More from Slack API
- Approve an app for installation on a workspace.
- List approved apps for an org or workspace.
- List app requests for a team/workspace.
- Restrict an app for installation on a workspace.
- List restricted apps for an org or workspace.
- Archive a public or private channel.
- Convert a public channel to a private channel.
- Create a public or private channel-based conversation.
- All 174