Edit a theme file
edit_theme_fileOn one site of the account, named in site. One change to a file of the theme: find must match exactly once, whitespace included, and is replaced by replace. Each edit is a commit in the person's name and goes live by itself once the theme is whole — no validator error, and in a theme that builds, built: the answer says live, or held with why (the errors to fix, the build to poll with get_build), and the file's warnings. A menu link is a row of set_navigation, never a link in the theme. Then render_page to check, and hand the person the page's address. 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>",
"find": "<find>",
"replace": "<replace>"
},
"name": "edit_theme_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | Yes | ||
| path | Yes | ||
| site | Yes | The site to work on, as list_sites names it | |
| theme | Yes | ||
| replace | Yes |