upload_file
Upload text content or disk files to one or more Slack channels. Optionally set a title, filename, or attach to a thread.
Instructions
Upload a file to one or more Slack channels. Provide either 'content' (UTF-8 text only) or 'file_path' (disk path for binary or text files), not both.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"channels": "<channels>",
"filename": "<filename>"
},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Optional display title for the file | |
| content | No | File content as text (mutually exclusive with file_path) | |
| channels | Yes | List of channel IDs to share the file in (max 100) | |
| filename | Yes | Name for the uploaded file | |
| file_path | No | Path to file on disk (mutually exclusive with content) | |
| thread_ts | No | Optional thread timestamp to attach upload to a thread |