upload_file
Upload a file from a local path to a Mattermost channel. Returns a file ID for attaching to messages.
Instructions
Upload a file to a channel.
The file will be attached to messages in the specified channel. Returns file ID that can be used when posting messages with file_ids parameter.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | Override filename | |
| file_path | Yes | Local path to the file to upload | |
| channel_id | Yes | 26-character channel identifier (e.g., 'o5w8h47pdfbzjc4d8w7dhnhren') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| client_ids | No | Client-provided IDs | |
| file_infos | Yes | Uploaded file information |