upload_attachment
Upload an attachment to a page, creating the attachment directory if needed, and receive the relative path for embedding in markdown.
Instructions
Upload an attachment to a page. Creates the attachment directory if needed. Returns the relative path to use in markdown (e.g. ).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collectiveId | Yes | ||
| pageId | Yes | ||
| filename | Yes | Filename for the attachment. | |
| content | Yes | File content as a UTF-8 string (for text) or base64-encoded string (for binary; set contentType accordingly). | |
| contentType | No | MIME type (e.g. "image/png", "text/plain"). Defaults to application/octet-stream. |