Theme Blocks
theme_blocksList Drupal block placements with optional theme, region, and text filters. Find site blocks by label or plugin to answer questions like "do we have a Site branding block?"
Instructions
List placed blocks with optional theme, region, and text filters.
Reads every block.block.* placement from JSON:API: id, theme, region, label, plugin, weight, and enabled state. search matches label and plugin case-insensitively (the "do we have a block like Site branding?" question); theme_name and region narrow the list to one placement set. With no filters every placement on the site is returned, most specific sort first (theme, region, weight).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "theme_blocks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| region | No | ||
| search | No | ||
| theme_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||