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
- edit_file: optional `edits[]` for atomic multi-edit (resolve on original,
reject overlaps, apply right-to-left). Reuses fuzzy match + nearMiss.
- run_bash: own timeout with process-tree kill (POSIX detached group /
Windows taskkill /T) so forked grandchildren can't outlive the call;
`all:true` restores stdout/stderr interleave order.
- ToolContext threads the turn AbortSignal into handlers; Ctrl-C now kills
the running command tree mid-flight.
- read_file: returns image files (png/jpg/gif/webp/bmp) as base64 attachments
for vision models instead of refusing as binary; 8MB cap. Adapter injects a
user message carrying the pixels after the tool message (Ollama only honors
images on user messages).
- JsonSchema gains `items` for array-of-object params.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
'Replace an exact string in a file. old_str must be unique unless replace_all is set. On no match, returns the closest text in the file.',
153
+
'Replace an exact string in a file. old_str must be unique unless replace_all is set. On no match, returns the closest text in the file. To make several edits to one file at once, pass an `edits` array of {old_str,new_str} — they apply atomically (all or nothing).',
97
154
input_schema: {
98
155
type: 'object',
99
156
properties: {
100
157
path: {type: 'string',description: 'File path'},
101
-
old_str: {type: 'string',description: 'Exact text to replace (whitespace-sensitive)'},
return{content: `edit_file needs old_str and new_str (or an edits[] array) for ${path}.`,is_error: true}
189
+
}
109
190
if(old_str===new_str){
110
191
return{
111
192
content: `old_str and new_str are identical — nothing to change in ${path}. If the file is already correct, do NOT edit again: finish with the respond action and tell the user it is done.`,
0 commit comments