Update theme file
update_theme_fileCreate or update a theme file. Requires a Pro subscription. Copies the built-in theme first if no custom files exist yet.
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": {
"blogId": "<blogId>",
"file_path": "<file_path>",
"content": "<content>"
},
"name": "update_theme_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blogId | Yes | Blog ID. Use list_blogs to discover available blog IDs. | |
| content | Yes | Full file content. | |
| file_path | Yes | Text theme file path ending in .liquid, .css, .js, .html, .json, .xml, or .txt. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |