Theme write files
theme_write_filesChange some files of a custom theme (Pro plan) as one new commit: files maps path → whole new text (null deletes), edits are find/replace changes. Read the current files with theme_pull first. Same validation and background compile as theme_upload. On the LIVE theme the change goes live automatically once compiled; theme_rollback undoes it. On the system theme id lokand-base it creates a new unpublished theme from it; pass publish: true to make that live too.
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": {
"business_id": "<business_id>",
"theme_id": "<theme_id>"
},
"name": "theme_write_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| edits | No | Find/replace changes inside existing files. Prefer this over whole files: send only the lines that change | |
| files | No | path → whole new file text, or null to delete the file | |
| message | No | Commit message describing the change | |
| publish | No | Go live once compiled (always the case when editing the live theme) | |
| theme_id | Yes | A theme id from theme_list (or the system theme id lokand-base) | |
| business_id | Yes |