vault_replace_text
Replace one exact, case-sensitive text match in an existing UTF-8 vault file using a version guard; provide empty new text to delete the match. No automatic retry.
Instructions
Replace one unique, case-sensitive literal match in an existing UTF-8 file. Copy exact oldText from a whole-file vault_read; copy version as ifMatch or versionGuard as ifMatchGuard. Empty newText deletes. No automatic retry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| ifMatch | No | ||
| newText | Yes | ||
| oldText | Yes | ||
| ifMatchGuard | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| created | Yes | ||
| message | Yes | ||
| version | Yes | ||
| warnings | No | ||
| sizeBytes | Yes | ||
| versionGuard | Yes | ||
| beforeSizeBytes | Yes | ||
| replacementCount | Yes |