Opus Growth

Edit WordPress Menu

Edit a WordPress navigation menu: add, rename, relink, reorder or remove navbar and footer links, create a menu, or assign one to a theme location.

Tipo
Faz alterações
Créditos
1
Plataforma
WordPress
Aprovação
Prévia primeiro, aplicado após sua aprovação

O que faz

Edit a WordPress navigation menu: add, rename, relink, reorder or remove navbar and footer links, create a menu, or assign one to a theme location.

action is one of: add_item, update_item, delete_item, reorder, create_menu, assign_location, restore. Link to an existing page with page_id, or to any address with url. Menu and item ids come from wordpress_menus.

Classic menus: pass menu_id, and item_id for an existing link. parent_id makes the link a dropdown child; order is the list of item ids in the sequence you want. Block themes take nav_id instead and identify a link by its path (dot-separated positions, such as 2.1) rather than item_id; parent is the path of the link it sits under; order is a list of paths. A previous version is kept, so action="restore" rolls the navigation back.

A descrição está em inglês porque é o texto oficial que sua IA vê.

MCP: wordpress_edit_menu

Como usar

Você não chama as ferramentas pelo nome. Escreva o que quer no ChatGPT, Claude ou outro assistente conectado ao Opus Growth; a IA escolhe esta ferramenta quando ela serve.

Como esta ferramenta altera sua conta, seu assistente mostra primeiro uma prévia exata da mudança. Nada é aplicado sem o seu sim, e cada alteração aplicada vai para o registro de auditoria.

Parâmetros

NomeTipoObrigatórioPadrão
actionstringObrigatório·add_item · update_item · delete_item · reorder · create_menu · assign_location · restore · Requested action for the selected resource; choose one of the actions allowed by this schema.
menu_idintegerOpcional0Exact menu identifier to target. Use the ID returned by an Opus Growth list or create operation, not a display name.
item_idintegerOpcional0Exact item identifier to target. Use the ID returned by an Opus Growth list or create operation, not a display name.
titlestringOpcional·Human-readable title for the resource being created or updated.
urlstringOpcional·URL to read, use as a destination, or otherwise process as described by this operation.
page_idintegerOpcional0Exact page identifier to target. Use the ID returned by an Opus Growth list or create operation, not a display name.
parent_idintegerOpcional-1Exact parent identifier to target. Use the ID returned by an Opus Growth list or create operation, not a display name.
positionintegerOpcional0Numeric position value for wordpress edit menu. Use the provider's expected unit, range, and precision.
targetstringOpcional·Resource, value, or destination to target, in the format required by this operation.
orderarrayOpcional·Order value for wordpress edit menu. Follow the documented provider format and use values returned by Opus Growth discovery tools where possible.
namestringOpcional·Human-readable name for the resource being created or updated.
locationstringOpcional·Target location, placement, or Business Profile resource for this operation. Use the exact provider-formatted value or ID returned by the relevant list or search tool.
nav_idintegerOpcional0Exact nav identifier to target. Use the ID returned by an Opus Growth list or create operation, not a display name.
pathstringOpcional·Provider path, route, or resource-relative path to use for this operation.
parentstringOpcional·Exact parent value for wordpress edit menu. Supply text in the provider's required format; when it selects an existing resource, use the exact identifier returned by the relevant list or search operation.
site_urlstringOpcional·Exact URL of the connected WordPress site to target when more than one site is available.