Theme Lint Twig
theme_lint_twigLint Twig templates in a Drupal theme to catch syntax errors before rendering. Specify the theme machine name and optional path to target the check.
Instructions
Lint Twig templates in theme.
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": {
"machine_name": "<machine_name>"
},
"name": "theme_lint_twig"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| machine_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||