get_comment
Retrieve specific comment details from Outline wiki by providing its unique identifier 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. It calls the Outline API's /comments.info endpoint with the commentId to fetch and return the comment details including id, documentId, data (text), timestamps, creator, and parent.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 schema definition for get_comment input, validating commentId as a UUID string.export const getCommentSchema = z.object({ commentId: z.string().uuid('Invalid comment ID'), });
- src/lib/tools.ts:134-138 (registration)Registers the 'get_comment' tool in the allTools array using createTool, linking to its Zod schema and providing description for MCP tool definition.createTool( 'get_comment', 'Get details of a specific comment.', 'get_comment' ),
- src/lib/schemas.ts:188-188 (schema)TypeScript type derived from getCommentSchema for use in handler function signatures.export type GetCommentInput = z.infer<typeof getCommentSchema>;
- src/lib/schemas.ts:231-231 (registration)Maps the 'get_comment' tool name to its schema in the central toolSchemas registry.get_comment: getCommentSchema,