Slack
SLACKBOT_UPLOAD_OR_CREATE_A_FILE_IN_SLACK
Uploads a file to Slack, requiring either `content` (for text) or `file` (for binary data), optionally sharing it in specified `channels` or as a reply via `thread_ts`.
Remote slackbot
Other tools also called SLACKBOT_UPLOAD_OR_CREATE_A_FILE_IN_SLACK?
See providers with this name
Input Schema
{
"type": "object",
"properties": {
"file": {
"type": "string",
"title": "File",
"description": "Binary file content as multipart/form-data; use for non-text files. Omit if `content` is used. Provide actual file content, not a path."
},
"title": {
"type": "string",
"title": "Title",
"examples": [
"My Document",
"Team Meeting Notes Q3"
],
"description": "Title of the file, displayed in Slack."
},
"token": {
"type": "string",
"title": "Token",
"description": "Authentication token; requires `files:write` scope."
},
"content": {
"type": "string",
"title": "Content",
"examples": [
"This is the content of my text file."
],
"description": "Text content of the file; use for text-based files. Omit if `file` is used."
},
"channels": {
"type": "string",
"title": "Channels",
"examples": [
"C1234567890,marketing-updates",
"general"
],
"description": "Comma-separated channel names or IDs for sharing; if omitted, file is private to the uploader."
},
"filename": {
"type": "string",
"title": "Filename",
"examples": [
"report.pdf",
"image.png"
],
"description": "Filename to be displayed in Slack."
},
"filetype": {
"type": "string",
"title": "Filetype",
"examples": [
"text",
"pdf",
"auto",
"python"
],
"description": "Slack file type (e.g., 'text', 'pdf'); Slack auto-detects if omitted. Refer to Slack API for full list."
},
"thread_ts": {
"type": "integer",
"title": "Thread Ts",
"examples": [
1678886400
],
"description": "Timestamp of a parent message to upload this file as a reply; use the original message's `ts`."
},
"initial_comment": {
"type": "string",
"title": "Initial Comment",
"examples": [
"Here is the Q3 financial report.",
"Check out this design mockup."
],
"description": "Optional message to introduce the file in specified `channels`."
}
}
}