ac_replace_text
Replace one exact, unique snippet inside a text or script file, with automatic backup and logging for safe config edits.
Instructions
Replace one exact, unique snippet inside a text/script file. Backup + log.
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": {
"file": "<file>",
"old": "<old>",
"new": "<new>"
},
"name": "ac_replace_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| new | Yes | ||
| old | Yes | ||
| file | Yes |