You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
details+=`\n\nNOTE: You are currently in '${currentMode}' mode which only allows read-only operations. To write files or execute commands, the user will need to switch to 'code' mode. Note that only the user can switch modes.`
2594
+
details+=`\n\nNOTE: You are currently in '${currentMode}' mode which only allows read-only operations. To write files or execute commands, the user will need to switch to '${defaultModeSlug}' mode. Note that only the user can switch modes.`
Description: Request to replace existing code using a search and replace block.
71
71
This tool allows for precise, surgical replaces to files by specifying exactly what content to search for and what to replace it with.
@@ -76,7 +76,7 @@ If you're not confident in the exact content to search for, use the read_file to
76
76
When applying the diffs, be extra careful to remember to change any closing brackets or other syntax that may be affected by the diff farther down in the file.
77
77
78
78
Parameters:
79
-
- path: (required) The path of the file to modify (relative to the current working directory ${cwd})
79
+
- path: (required) The path of the file to modify (relative to the current working directory ${args.cwd})
80
80
- diff: (required) The search/replace block defining the changes.
81
81
- start_line: (required) The line number where the search block starts.
82
82
- end_line: (required) The line number where the search block ends.
Description: Apply a unified diff to a file at the specified path. This tool is useful when you need to make specific modifications to a file based on a set of changes provided in unified diff format (diff -U3).
8
8
9
9
Parameters:
10
-
- path: (required) The path of the file to apply the diff to (relative to the current working directory ${cwd})
10
+
- path: (required) The path of the file to apply the diff to (relative to the current working directory ${args.cwd})
11
11
- diff: (required) The diff content in unified format to apply to the file.
0 commit comments