nucleo-menu-set
Creates or updates a navigation menu by slug and replaces all its items with ordered page, post, URL, or reference links, including nested children.
Instructions
Creates or updates a navigation menu by slug and replaces all its items. Each item is {label, page | post | url | ref, children}: page and post take the slug of a published page or post; ref points to other targets: "home", "archive:", ":" (a published post, hierarchical slugs as paths), "term:/"; url is only for external links; children are nested items, up to 3 levels deep. Existing items are removed. If a target is not found, nothing changes.
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": {
"slug": "<slug>",
"items": "<items>"
},
"name": "nucleo-menu-set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Menu name. Defaults to the slug. | |
| slug | Yes | Menu slug, lowercase, e.g. "principale". | |
| items | Yes | Menu items in order. Each item: {label: string, page?: slug, post?: slug, url?: string, ref?: string, children?: items}. Exactly one of page, post, url, ref. |