| 143 | } |
| 144 | |
| 145 | type EditFileInput struct { |
| 146 | FilePath string `json:"file_path" jsonschema_description:"The absolute path to the file to edit"` |
| 147 | OldString string `json:"old_string" jsonschema_description:"The exact text to replace"` |
| 148 | NewString string `json:"new_string" jsonschema_description:"The text to replace it with (must differ from old_string)"` |
| 149 | ReplaceAll bool `json:"replace_all,omitempty" jsonschema:"default=false" jsonschema_description:"If true, replace all occurrences. Otherwise old_string must appear exactly once."` |
| 150 | } |
| 151 | |
| 152 | type EditFileTool struct{ BaseTool } |
| 153 |
nothing calls this directly
no outgoing calls
no test coverage detected