Create Comment
create_commentCreate a new collaboration comment on a document. Provide document ID and content; optional mentions and workspace ID.
Instructions
Create a new comment on an existing document. This writes collaboration state; use update_comment when editing an existing comment instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docId | Yes | Document id that will receive the new comment. | |
| content | Yes | Comment content accepted by AFFiNE. Plain strings are normalized to { text }, and rich AFFiNE payload objects are passed through. | |
| docMode | No | Document surface for the comment. Defaults to page. | |
| docTitle | No | Optional document title stored with the comment metadata. | |
| mentions | No | Optional AFFiNE user ids to mention in the comment. | |
| workspaceId | No | AFFiNE workspace id. Omit only when AFFINE_WORKSPACE_ID is configured. |