affine_resolve_comment
Mark comments as resolved or unresolved in AFFiNE workspaces to streamline feedback management and improve collaboration during document editing.
Instructions
Resolve or unresolve a comment.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| resolved | Yes |
Implementation Reference
- src/tools/comments.ts:144-148 (handler)The async handler function that executes the tool logic: performs a GraphQL mutation to resolve or unresolve a comment.const resolveCommentHandler = async (parsed: { id: string; resolved: boolean }) => { const mutation = `mutation ResolveComment($input: CommentResolveInput!){ resolveComment(input:$input) }`; const data = await gql.request<{ resolveComment: boolean }>(mutation, { input: parsed }); return text({ success: data.resolveComment }); };
- src/tools/comments.ts:149-160 (registration)Registers the 'affine_resolve_comment' tool, including input schema and links to the handler.server.registerTool( "affine_resolve_comment", { title: "Resolve Comment", description: "Resolve or unresolve a comment.", inputSchema: { id: z.string(), resolved: z.boolean() } }, resolveCommentHandler as any );