slack_upload_file
Upload a local file to a Slack channel, DM, or thread as yourself, with an optional comment and title.
Instructions
Upload a local file to a Slack channel/DM AS THE USER, with an optional comment. Same style gate as slack_send_message applies to initial_comment and title. channel_id: C.../G.../D..., or a user id U... to upload into the DM with that person (your own id = your self-DM; needs im:write). thread_ts: upload as a thread reply. file_path: absolute path inside SLACK_FILE_ROOTS (default: home and temp folders; hidden files and ~/Library refused). title: file title, defaults to the filename.
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": {
"workspace": "<workspace>",
"channel_id": "<channel_id>",
"file_path": "<file_path>"
},
"name": "slack_upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| file_path | Yes | ||
| thread_ts | No | ||
| workspace | Yes | ||
| channel_id | Yes | ||
| allow_promise | No | ||
| initial_comment | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||