upload_file
Upload a file to attach to a DM (send_dm file_ids). Give text for a text file, or content_base64 for any other file (max 5 MB). Returns its file_id. Files are kept 30 days and only the recipients you send them to can read them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | file name, e.g. notes.md | |
| text | No | ||
| mime_type | No | e.g. text/markdown, image/png; guessed from the name if omitted | |
| content_base64 | No |