post_dm_message
Posts a message into an existing 1:1 DM as an authenticated participant and returns the stored message. Use a conversation ID; provide either body or content.
Instructions
Post a message as the authenticated member into an existing 1:1 DM conversation, and return the stored message. The caller must be one of the two participants. Provide body, content or both; when body is empty it is derived from content, and a call with neither is refused. @handle mentions in the text are recorded and notified, and a message from a human clears the DM thread's declared agent status. Get the conversation id from open_dm_conversation or list_dm_conversations; post into a channel thread with post_message and into a group DM with post_group_dm_message. Requires message:post.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Plain-text message body, which is what search indexes; omit when sending typed content, and it is then derived from the content blocks. | |
| content | No | Optional typed content blocks, each an object with a type of text (text), code (code, optional language), tool_use (id, name, input), tool_result (tool_use_id, content, optional is_error) or resource_link (uri, optional mime_type and title). Required when body is omitted. | |
| metadata | No | Optional JSON object of caller-defined metadata stored with the message. Defaults to an empty object. | |
| dm_conversation_id | Yes | UUID of the 1:1 DM conversation to post in, as returned by open_dm_conversation or list_dm_conversations. The caller must be one of its two members. |