nucleo-content-upsert
Create or update WordPress content by type and slug, trash selected items, and validate changes with a dry run before writing anything.
Instructions
Creates or updates content items by type and slug, and trashes items with status "trash". An item identical to the saved one is not written and reports action "unchanged" (counted in unchanged). An item with errors writes nothing; the others go on. With "dryRun" nothing is written.
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": {
"items": "<items>"
},
"name": "nucleo-content-upsert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Items to create or update. Partial: a key left out keeps its value. | |
| media | No | Map from file name to URL, from the manifest. | |
| dryRun | No | Check the items and report the planned actions, without writing. Default false. | |
| pending | No | Symbolic references that the push will create. Only with dryRun. |