get_comment
Retrieve specific comment details from Outline wiki using its unique 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. It fetches the specific comment details from the Outline API using the provided commentId and returns formatted comment information.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 the get_comment tool, defining the required 'commentId' as a UUID.export const getCommentSchema = z.object({ commentId: z.string().uuid('Invalid comment ID'), });
- src/lib/tools.ts:135-139 (registration)Registers the 'get_comment' tool in the allTools array, linking its name, description, and schema.'get_comment', 'Get details of a specific comment.', 'get_comment' ), createTool(
- src/lib/handlers/index.ts:24-24 (registration)Includes the comment handlers (including get_comment) in the aggregated ToolHandlers object....createCommentHandlers(ctx),
- src/lib/schemas.ts:231-231 (schema)Maps the get_comment tool name to its schema in the central toolSchemas record.get_comment: getCommentSchema,