manage_menu
Create, list, and update WordPress navigation menus: add pages, posts, or custom links, then assign the menu to a theme location.
Instructions
Manage navigation menus. Actions: list, create, add_item, assign_location. Add pages/posts/custom links to a menu and assign it to a theme location.
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": {
"action": "<action>"
},
"name": "manage_menu"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| menu | No | Menu name or ID. | |
| title | No | ||
| action | Yes | list | |
| object | No | menu-item-object: page, post, custom, category. | |
| location | No | Theme menu location slug. | |
| object_id | No | Post/page ID for a page/post menu item. |