Update theme file
theme_update_fileOverwrite a single file in a Shopify theme with new content. Get the theme ID from theme_list first.
Instructions
Overwrite one file in a Shopify theme with new content. 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>",
"fileContent": "<fileContent>"
},
"name": "theme_update_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 | |
| fileContent | Yes | Full new file content — replaces the file entirely |