Experimental Toolset Documentation#
Generated byAICaution: This toolset contains experimental tools that may undergo significant changes or be removed in future updates. Use with caution and ensure you have backups of your data.
apply_patch_to_text_file#
Applies a patch using the diff format to a specified text file using the patch command.
Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
file_path |
String | Yes | The relative path to the file to be patched. |
patch_content |
String | Yes | The content of the patch to apply. |
Notes#
- The tool uses the
patchcommand with the--no-backup-if-mismatchflag. - It ensures the file is within the current directory and is a valid text file.
regex_text_edit_tool#
Finds patterns using a regex in a text-based file and replaces them with new text.
Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
file_path |
String | Yes | The relative path to the file where you want to perform the regex replacement. |
pattern |
String | Yes | The regex pattern to search for in the file. |
replacement |
String | Yes | The text to replace the pattern with in the file. |
Notes#
- The tool ensures the file is within the current directory and is a valid text file.
- It uses multiline regex options for pattern matching.