Edit site file
edit_site_fileChange a site file by exact text: oldText once (or replaceAll) becomes newText, or newText goes insertAfter / insertBefore an anchor. Smallest span; keep data-edit-*. Linted on save; errors give the line, a missing oldText gets the closest match. The reply shows how stored text differs from what you sent. Stages in the draft.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Site id. | |
| path | Yes | ||
| edits | Yes | ||
| baseVersion | No | Version from read_site_file; refuses if the file changed since. |