Write a theme file
write_theme_fileOn one site of the account, named in site. A whole file of the theme, new or replaced (.liquid .json .css .js .md .txt .svg .html, up to 256 KB): a commit in the person's name, live by itself once the theme is whole — the answer says live, or held with why, and the file's warnings. A menu link is a row of set_navigation, never a link in the theme. For a change inside an existing file use edit_theme_file. Never assets/built in a theme that builds — that is the build's output. Admins only.
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": {
"site": "<site>",
"theme": "<theme>",
"path": "<path>",
"content": "<content>"
},
"name": "write_theme_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| site | Yes | The site to work on, as list_sites names it | |
| theme | Yes | ||
| content | Yes |