Append ACF Repeater Row
Appends a new row to the end of a repeater field without touching existing rows.
| Property | Value |
|---|---|
| Ability slug | mosmcp/append-repeater-row |
| Wire tool name | mosmcp__append-repeater-row |
| Category | Advanced Custom Fields (mosmcp-acf) |
| Plan | Free |
Required access
| Requirement | Value |
|---|---|
| Capability | edit_posts, edit_post (checked against the specific post) |
| Minimum default role | Contributor |
| Requires | Advanced Custom Fields |
| Annotations | readOnly: false · destructive: false · idempotent: false · openWorld: true |
Input schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| field_key | string | Yes | — | Repeater field name or key. |
| post_id | integer | Yes | — | Post/page/CPT entry the repeater belongs to. |
| row_values | object | Yes | — | Sub-field name/value pairs for the new row. |
Output schema
| Field | Type | Required |
|---|---|---|
| success | boolean | |
| row_index | integer | |
| rows | array \| null |
Example
Sample prompt
Add a new FAQ to the Help page: 'Can I return items?' - 'Yes, within 30 days.'
Example request (json)
{
"jsonrpc": "2.0",
"id": 410,
"method": "tools/call",
"params": {
"name": "mosmcp__append-repeater-row",
"arguments": {
"input": {
"field_key": "faq_items",
"post_id": 42,
"row_values": {
"question": "Can I return items?",
"answer": "Yes, within 30 days."
}
}
}
}
}Example response (json)
{
"jsonrpc": "2.0",
"id": 410,
"result": {
"isError": false,
"structuredContent": {
"success": true,
"row_index": 2,
"rows": [
{
"question": "Do you ship abroad?",
"answer": "Yes, to 30 countries."
},
{
"question": "How long is delivery?",
"answer": "3-5 business days."
},
{
"question": "Can I return items?",
"answer": "Yes, within 30 days."
}
]
}
}
}
Edge cases / errors
- Field is not a repeater (flexible content is not accepted here) → acfa_not_repeater error.
- row_values empty or not an object → acfa_missing_row_values error.
- ACF fails to add the row → acfa_add_row_failed error.
- Not idempotent: calling twice appends two identical rows.
| << Previous | Next >> |
|---|---|
| Add Field to ACF Field Group | Bulk Update ACF Fields |
For more information about the Secure MCP Server for WordPress plugin, explore the following resources:
Product Overview | Pricing | Try for Free | Documentation
If you have any questions regarding plugin configuration, pricing plans or licensing, please contact us or mail us at aisupport@xecurify.com.