Theme Template Overrides
theme_template_overridesIdentify which Drupal core or module Twig templates a theme overrides and which are theme-original, returning paths and a scanned file count. Requires DRUPAL_ROOT.
Instructions
Which core/module templates a theme overrides, and which it invented.
For every Twig file in the theme, the docroot is indexed once for files with the same name outside that theme; a match means the theme's copy wins at render time (an override), no match means a theme-original template. Returns both lists with paths, plus how many Twig files were scanned. Requires DRUPAL_ROOT.
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_template_overrides"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| theme_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||