fc_bulk_update_posts
Update multiple posts simultaneously to modify status, privacy settings, or post type across your FluentCommunity WordPress site in one operation.
Instructions
Update multiple posts at once
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| post_ids | Yes | Array of post IDs to update | |
| updates | Yes | Fields to update on all posts |
Implementation Reference
- src/tools/fluent-community.ts:543-553 (handler)Handler function for fc_bulk_update_posts tool. Makes a POST request to the WordPress API endpoint 'fc-manager/v1/posts/bulk-update' with post_ids and updates.fc_bulk_update_posts: async (args: any) => { try { const response = await makeWordPressRequest('POST', 'fc-manager/v1/posts/bulk-update', { post_ids: args.post_ids, updates: args.updates, }); 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}` }] } }; } },
- Zod schema defining the input parameters for the fc_bulk_update_posts tool: array of post IDs and update fields (status, privacy).const bulkUpdatePostsSchema = z.object({ post_ids: z.array(z.number()).describe('Array of post IDs to update'), updates: z.object({ status: z.string().optional(), privacy: z.string().optional() }).describe('Fields to update on all posts') });
- src/tools/fluent-community.ts:272-276 (registration)Tool registration entry in the fluentCommunityTools array, specifying name, description, and input schema.{ name: 'fc_bulk_update_posts', description: 'Update multiple FluentCommunity posts at once', inputSchema: { type: 'object', properties: bulkUpdatePostsSchema.shape } },