fc_get_post
Retrieve specific community post details by ID to access complete content, author information, and engagement metrics for content management.
Instructions
Get a specific post by ID with all details
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post_id | Yes | The ID of the post to retrieve |
Implementation Reference
- src/tools/fluent-community.ts:309-316 (handler)The async handler function that implements the core logic of fc_get_post by making a GET request to the WordPress API endpoint fc-manager/v1/posts/{post_id} and returning the post data or error.fc_get_post: async (args: any) => { try { const response = await makeWordPressRequest('GET', `fc-manager/v1/posts/${args.post_id}`); return { toolResult: { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] } }; } catch (error: any) { return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${error.message}` }] } }; } },
- src/tools/fluent-community.ts:22-24 (schema)Zod schema defining the input validation for the fc_get_post tool, requiring a numeric post_id parameter.const getPostSchema = z.object({ post_id: z.number().describe('The ID of the post to retrieve') });
- src/tools/fluent-community.ts:172-176 (registration)Registers the fc_get_post tool metadata (name, description, input schema) in the fluentCommunityTools export array.{ name: 'fc_get_post', description: 'Get a specific FluentCommunity post by ID with all details', inputSchema: { type: 'object', properties: getPostSchema.shape } },
- src/tools/index.ts:29-29 (registration)Top-level aggregation of all tools including fluentCommunityTools (which contains fc_get_post) into the allTools export....fluentCommunityTools, // 21 tools (FluentCommunity spaces, posts, members)
- src/tools/index.ts:49-49 (registration)Top-level aggregation of all handlers including fluentCommunityHandlers (which contains fc_get_post handler) into the toolHandlers export....fluentCommunityHandlers,