Edit Website File
site_edit_fileMakes a SMALL, surgical edit to an existing text file by replacing an exact string — WITHOUT
resending the whole file. Use this for iterative tweaks (a heading, a Tailwind class, a price):
it saves a large amount of tokens vs site_write_file, which must resend the entire file every time.
old_string must match the file EXACTLY and be UNIQUE (include enough surrounding context),
unless replace_all=true. For a brand-new file use site_write_file instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| site | No | ||
| server | No | ||
| new_string | Yes | ||
| old_string | Yes | ||
| replace_all | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||