Upload File
fizzy_upload_fileUpload a file to Fizzy and receive HTML to embed it in comments or cards. Provide a local path or base64 data to generate an attachment snippet.
Instructions
Upload a file (screenshot, image, PDF, log) to Fizzy and get back the HTML needed to embed it. This does not attach the file on its own — it returns an 'attachment_html' snippet that you then include in any rich-text field: pass it in 'body' to fizzy_create_comment or fizzy_update_comment, or in 'description' to fizzy_create_card or fizzy_update_card. Combine it with your own HTML, e.g. body: "Steps to reproduce:" + attachment_html. Provide the file as 'file_path' (a local path — stdio transport only) or as 'base64_data' with 'filename' (works everywhere).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | Name to store the file under, e.g. 'screenshot.png'. Required with base64_data; defaults to the basename of file_path otherwise. | |
| file_path | No | Absolute path to a local file. Provide exactly one of file_path or base64_data. Only available over the stdio transport, where the caller and the server are the same user; hosted transports reject it. Preferred locally — it avoids inlining the file's bytes into the request. | |
| base64_data | No | The file's bytes, Base64-encoded. Provide exactly one of file_path or base64_data. Works on every transport, and requires filename. Use this when file_path is unavailable. | |
| account_slug | Yes | The account slug identifier (e.g., '123456' or '/123456'). This identifies which Fizzy account to operate on. Get available account slugs from fizzy_get_identity or fizzy_get_accounts. | |
| content_type | No | MIME type, e.g. 'image/png'. Inferred from the filename extension when omitted, falling back to application/octet-stream. |