nucleo-layout-conditions-set
Replace a layout’s include, exclude, and priority conditions while leaving the rest of the document unchanged; invalid condition types or keys are rejected.
Instructions
Replaces the include, exclude and priority conditions of a layout. The rest of the document does not change. Each condition is {"type", ...keys of the type}, e.g. {"type": "post_type", "value": "prodotto"} or {"type": "post", "value": 12}; unknown types or keys are refused with code layout_condition and the expected format. All types: nucleo/catalog-get topic layouts. baseRevision, if provided, must match the current revision, otherwise it returns conflict. On a published layout an OAuth token also needs the scope nucleo:publish, besides nucleo:design.
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": {
"postId": "<postId>",
"conditions": "<conditions>"
},
"name": "nucleo-layout-conditions-set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| postId | Yes | ||
| conditions | Yes | ||
| baseRevision | No | Revision read with nucleo/doc-get. |