mattermost_download_file
Download a file attached to a Mattermost post to local disk and get its absolute path and metadata. Optionally return images inline.
Instructions
Download a file attached to a Mattermost post to the local disk and return its absolute path and metadata. Without output_path the file is saved to the system temporary directory as mattermost-mcp/{file_id}_{name}. An existing file at the target path is overwritten. With inline=true a PNG, JPEG, GIF or WebP image up to 1 MB is also returned as image content; for other types or larger files the response explains why inline was skipped.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inline | No | If true, also return the image as image content when it is image/png, image/jpeg, image/gif or image/webp and not larger than 1 MB | |
| file_id | Yes | The ID of the file (26 characters) | |
| output_path | No | Where to save the file. An existing directory or a path ending with / or \ is a directory: the file is saved inside it with its original name and missing directories are created. Any other path is the file path, missing parent directories are created. A leading ~ is expanded to the home directory, relative paths are resolved from the server working directory. |