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

NameTypeDescription
tokenstringAuthentication token. Requires scope: files:write:user
filestringFile contents via multipart/form-data. If omitting this parameter, you must…
contentstringFile contents via a POST variable. If omitting this parameter, you must…
filetypestringA file type identifier.
filenamestringFilename of file.
titlestringTitle of file.
initial_commentstringThe message text introducing the file in specified channels.
channelsstringComma-separated list of channel names or IDs where the file will be shared.
thread_tsnumberProvide 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:

call_tool arguments
{
  "name": "slack_api__files_upload",
  "arguments": {}
}

Or connect the Slack API server directly, which lists 174 tools including this one:

Run in your terminal
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