get_comment
Retrieve specific comment details from Outline wiki by providing the comment ID for document management and collaboration.
Instructions
Get details of a specific comment.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commentId | Yes |
Implementation Reference
- src/lib/handlers/comments.ts:55-67 (handler)The core handler function for the 'get_comment' tool that fetches and formats comment details from the Outline API.async get_comment(args: GetCommentInput) { const { data } = await apiCall(() => apiClient.post<OutlineComment>('/comments.info', { id: args.commentId }) ); return { id: data.id, documentId: data.documentId, data: data.data, createdAt: data.createdAt, createdBy: data.createdBy?.name, parentCommentId: data.parentCommentId, }; },
- src/lib/schemas.ts:87-89 (schema)Zod input schema for 'get_comment' tool, requiring a valid UUID commentId.export const getCommentSchema = z.object({ commentId: z.string().uuid('Invalid comment ID'), });
- src/lib/tools.ts:134-138 (registration)Registers 'get_comment' as an MCP tool with description and schema reference.createTool( 'get_comment', 'Get details of a specific comment.', 'get_comment' ),
- src/lib/handlers/index.ts:24-24 (registration)Aggregates comment handlers, including 'get_comment', into the main handlers object....createCommentHandlers(ctx),
- src/lib/schemas.ts:231-231 (schema)Maps 'get_comment' to its schema in the central toolSchemas object.get_comment: getCommentSchema,