Create Comment
create_commentAdd comments to any document in your AFFiNE workspace to provide feedback or collaborate.
Instructions
Create a comment on a doc.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspaceId | No | ||
| docId | Yes | ||
| docTitle | No | ||
| docMode | No | ||
| content | No | ||
| mentions | No |
Implementation Reference
- src/util/mcp.ts:26-32 (helper)The 'receipt' helper function used by the handler to format the response with a kind, ok status, and data payload.
export function receipt(kind: string, data: Record<string, unknown>) { return text({ kind, ok: true, ...data, }); }