nucleo-model-set
Save a WordPress content model—post types, taxonomies and field groups—in one JSON document, with partial saves, validation, dry-run diffs and confirmed destructive changes.
Instructions
Saves the content model. Format: {"schema": 1, "postTypes": [{"slug", "singular", "plural", "public"?, "hasArchive"?, "rewrite"?, "supports"?, "icon"?}], "taxonomies": [{"slug", "singular", "plural", "postTypes"?, "hierarchical"?, "public"?}], "fieldGroups": [{"id", "title", "location": {"postType"} or {"taxonomy"}, "fields": [{"key", "type", "label", ...}]}]}. "singular" and "plural" are the labels. Partial save: postTypes, taxonomies and fieldGroups that you do not send stay as saved; a key you send replaces the whole list (send [] to empty it). Slugs: lowercase, post types max 20 characters, taxonomies max 32; reserved_slug = a WordPress slug (post, page, category, wp_...) or a type registered by another plugin or the theme (model-get "unmodeled" shows them: add a field group to them instead). Every rule is checked before anything is written. Destructive changes need their ids in "confirm". With "dryRun" nothing is written. Full rules and field types: catalog-get {topic: model}.
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": {
"model": "<model>"
},
"name": "nucleo-model-set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Content model document. Missing postTypes, taxonomies or fieldGroups keep their saved value. | |
| dryRun | No | Return the diff without saving. | |
| confirm | No | Ids of destructive changes to accept, for example "field:dettagli/prezzo". |