wp_list_blocks
Lists Gutenberg blocks for a given WordPress page or post ID, showing block names, paths, and attribute previews. Use it to inspect and analyze the block structure of any content.
Instructions
List Gutenberg blocks on a page/post as a flat index with blockName, path, and attributes preview
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": {
"page_id": "<page_id>"
},
"name": "wp_list_blocks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | WordPress page or post ID |