update_menu_item_children
Replace the children of a specific menu item to update a submenu without reconstructing the entire menu structure.
Instructions
Update only the children of a specific menu item. This is useful for updating a submenu without needing to reconstruct the entire menu structure.
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": {
"menuId": "<menuId>",
"menuItemId": "<menuItemId>",
"children": "<children>"
},
"name": "update_menu_item_children"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| menuId | Yes | Menu ID (e.g., 'gid://shopify/Menu/123456789') | |
| children | Yes | New children to replace existing children of the specified menu item | |
| menuItemId | Yes | Menu item ID whose children will be updated (e.g., 'gid://shopify/MenuItem/987654321') |