Skip to main content
Glama

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
NameRequiredDescriptionDefault
idYes
resolvedYes

Implementation Reference

  • 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 });
    };
  • 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
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DAWNCR0W/affine-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server