get_theme_file
Retrieve a specific file from a Shopify theme by supplying its theme ID and filename. Works for Liquid templates, CSS, and other theme assets.
Instructions
Fetch a specific file from a 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": {
"themeId": "<themeId>",
"filename": "<filename>"
},
"name": "get_theme_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| themeId | Yes | Theme ID (e.g., 'gid://shopify/OnlineStoreTheme/123456789') | |
| filename | Yes | Filename of the theme file (e.g., 'sections/header.liquid') |