add_chat_message_attachment
Attach a file to a Huly channel message, direct message, or thread reply. Provide file details and source via path, URL, or base64 data.
Instructions
Attach a file directly to a Huly channel message, direct-message message, or thread reply. Provide filename, contentType, and exactly one of filePath, fileUrl, or data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Chat attachment target. Use channel_message for a channel message, dm_message for a direct-message message, or thread_reply for a thread reply. | |
| filename | Yes | Name of the file to attach to the chat message or thread reply. | |
| contentType | Yes | MIME type of the file, such as image/png or application/pdf. | |
| filePath | No | Local file path to upload. Mutually exclusive with fileUrl and data. | |
| fileUrl | No | Remote URL to fetch and upload. Mutually exclusive with filePath and data. | |
| data | No | Base64-encoded file data. Mutually exclusive with filePath and fileUrl. | |
| description | No | Optional attachment description. Use null on update to clear it. | |
| pinned | No | Whether the attachment should be pinned. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | The successful tool result. The same value is also serialized as JSON in the text content for clients that do not read structuredContent. | |
| warnings | No | Optional agent-visible warnings about degraded result fidelity. Omitted when the server returned the documented happy-path payload. |