Read theme file
theme_read_fileRead any file's content in a Shopify theme using the theme ID and file path. Start by getting the theme ID from theme_list.
Instructions
Read the content of one file in a Shopify theme. Get the theme ID from theme_list first.
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>",
"filePath": "<filePath>"
},
"name": "theme_read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| themeId | Yes | Theme GID, e.g. gid://shopify/OnlineStoreTheme/123456789 | |
| filePath | Yes | Path inside the theme, e.g. sections/header.liquid or templates/index.json |