Theme Templates
theme_templatesList a Drupal theme's Twig templates with sizes, filtered by an optional name pattern, to inspect template files and their byte sizes.
Instructions
List a theme's Twig templates (*.html.twig) with sizes.
Walks the theme directory on the local docroot (symlinks skipped, nothing outside DRUPAL_ROOT reported). pattern is a case-insensitive substring matched against the template name — "node--", "views", "field" — to narrow the list. Returns docroot-relative paths and byte sizes, sorted.
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_templates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | No | ||
| theme_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||