Skip to main content
Glama

wpnav_gutenberg_replace_block

Replace existing Gutenberg blocks in WordPress posts by specifying post ID, block path, and new block type with attributes.

Instructions

Replace an existing Gutenberg block at specified path with a new block.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
post_idYesPost ID to modify
pathYesPath to block to replace (e.g., [0] = first block, [1, 0] = first child of second block)
block_typeYesNew block type (e.g., "core/heading", "core/paragraph")
attrsYesNew block attributes

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/littlebearapps/wp-navigator-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server