analyze_liquid_file
Pinpoint performance anti-patterns in a specific Shopify Liquid file to diagnose and resolve slow themes.
Instructions
Statically analyze a specific Liquid file for performance anti-patterns. Requires legacy cookie authentication (use 'login_legacy' tool).
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": {
"storeUrl": "<storeUrl>"
},
"name": "analyze_liquid_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| themeId | No | Theme ID to analyze. Defaults to the live (main) theme. | |
| fileName | No | Specific file to analyze (e.g., 'layout/theme.liquid'). If omitted, analyzes layout/theme.liquid. | |
| storeUrl | Yes | The Shopify store URL |