acf_import_field_groups
Import ACF field groups from JSON exports by sending a site ID and group objects with keys, titles, and fields; update existing groups to avoid duplicate keys.
Instructions
Import ACF field groups from JSON export format (each needs key, title and fields). The endpoint does not look up an existing group by key, so importing a key that already exists can create a duplicate; use acf_update_field_group for existing groups.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site": "<site>",
"groups": "<groups>"
},
"name": "acf_import_field_groups"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site id (see list_sites) | |
| groups | Yes | ACF field group JSON objects (as from acf_export_field_group) |