Replace exact string(s) in a file. Scans, finds matches, changes only those, saves. Fails if no match. Use when the user asks to replace, change, or fix a specific string in a file.
Surgical find-and-replace in a file. Scans for exact matches, changes only those, saves. Fails if no match — so you know the edit was applied.
Call run_skill with skill: "edit". Set command or arguments.action to edit.
Use when the user says things like:
Only exact matches are replaced. If oldString does not appear in the file, the skill returns an error and the file is unchanged.
edit_file
description: Replace exact string in a file. oldString must match exactly.
parameters:
path: string
oldString: string
newString: string