Skip to content

Formatted text and comment edits

Send Markdown or structured JSON through MCP and edit your comments, annotations, and replies.

Write formatted text

Post content, task descriptions, comments, and chat messages accept Markdown or the editor's Plate JSON block arrays. For Markdown, send a string with contentFormat: "markdown". Task descriptions use descriptionFormat instead. Send a block array directly for structured JSON, or set the format to platejs when sending a serialized array.

JSON
{
  "name": "create_task_comment",
  "arguments": {
    "taskId": "task_id",
    "content": "## Review\n\n- **Ready**\n- [Details](https://example.com)",
    "contentFormat": "markdown"
  }
}

Edit a comment

Use update_post_comment to edit your post comment, annotation, or reply. Use update_task_comment for a task comment or reply. Both take commentId, content, and an optional contentFormat. Edits preserve attachments and annotation positions. To reply, pass parentId to the comment creation tool.

send_chat_message accepts the same content formats. list_chat_messages returns the stored content, its contentFormat, and plain contentText. For comments on docs, use update_doc_comment with docId, commentId, and the same content fields. The other doc comment tools create, delete, and resolve them.

Check tools/list for the inputs available on your connection. The API examples show Markdown and structured JSON payloads.

If an edit fails, check that the comment is yours and your account still has write access. You cannot edit another author's comment. For content validation errors, check the format field and use either a Markdown string or a JSON block array with text leaves.

Image preview
100%