Skip to main content
Glama

wpnav_gutenberg_insert_block

Insert Gutenberg blocks into WordPress posts at specific positions using path arrays for precise content placement.

Instructions

Insert a new Gutenberg block at specified path. Path is array of indices (e.g., [0] for first position, [1,0] for first child of second block).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
post_idYesPost ID to modify
pathYesPath array (e.g., [0] = first block, [1, 0] = first child of second block)
block_typeYesBlock type (e.g., "core/heading", "core/paragraph", "core/button")
attrsYesBlock attributes (e.g., {level: 2, content: "Hello"} for heading, {content: "Text"} for paragraph)

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