Theme Regions
theme_regionsInspect a Drupal theme's region layout and the blocks assigned to each region, revealing empty regions and orphaned placements.
Instructions
Region layout of a theme with the blocks placed in each one.
Regions come from the theme's info.yml in declaration order; each carries its blocks (label, plugin, weight, enabled state) and a count, so empty regions and placements in regions the theme no longer defines are both visible at a glance. Needs DRUPAL_ROOT (info.yml) and the JSON:API client (block placements).
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": {
"theme_name": "<theme_name>"
},
"name": "theme_regions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| theme_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||