post_message
Post a message to a thread as the authenticated member, using plain text or typed content blocks. The stored message is returned, with mentions and slash commands handled.
Instructions
Post a message to a thread as the authenticated member and return the stored message (id, thread_id, author_id, body, metadata, content, posted_at). Send body for plain text or content for typed blocks; when body is empty it is derived from the blocks, and sending neither is refused. A closed thread still takes messages, while a deleted or archived thread refuses them. The post appends a MessagePosted event, records each @handle mention and publishes a mention event for it, and runs the registered slash command when the body begins with /name (see register_slash_command). For a DM conversation id use post_dm_message. Requires message:post.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Plain-text message text, which is what search indexes; omit when sending typed content, or send an empty string. At least one of body or content is required. | |
| content | No | Typed content blocks in order. Each block has a type: text {text}, code {code, language}, tool_use {id, name, input}, tool_result {tool_use_id, content, is_error}, or resource_link {uri, mime_type, title}. When body is empty, body is built from the blocks; tool_use blocks add no text. | |
| metadata | No | Free-form JSON object stored with the message and returned with it, for example {"artifacts": ["<sha256>"]} to name artifacts the message refers to. Defaults to an empty object. | |
| thread_id | Yes | UUID of the thread to post in. You must be able to read it; a thread in a private channel or DM you are not part of is refused. |