analyze_theme
Analyze a WordPress theme directory to find missing files, header and template hierarchy issues, escaping gaps, and translation-readiness problems in block or classic themes.
Instructions
Analyze a WordPress theme directory for best practices and issues. Checks: required files, style.css headers, template hierarchy, theme.json, functions.php patterns, escaping, translation-readiness, screenshot. Works with both block (FSE) and classic themes.
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": {
"themePath": "<themePath>",
"conversationId": "<conversationId>"
},
"name": "analyze_theme"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| themePath | Yes | Absolute path to the WordPress theme directory. | |
| conversationId | Yes | The conversation ID obtained from learn_wordpress_api. |