wp_create_menu_item
Add items to a WordPress navigation menu programmatically. Specify menu ID, title, and optional URL, type, object, position, or parent ID to place the item correctly.
Instructions
Add an item to a navigation menu
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": {
"menu_id": "<menu_id>",
"title": "<title>"
},
"name": "wp_create_menu_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| type | No | custom | |
| title | Yes | ||
| object | No | ||
| menu_id | Yes | ||
| position | No | ||
| object_id | No | ||
| parent_id | No |