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
FileEditor now supports viewing image files (.png, .jpg, .jpeg, .gif, .webp, .bmp) by returning base64-encoded image data and displaying it as ImageContent. Updated FileEditorObservation and tool description to handle image data, and added tests to verify image handling and backward compatibility with text files.
TOOL_DESCRIPTION="""Custom editing tool for viewing, creating and editing files in plain-text format
158
183
* State is persistent across command calls and discussions with the user
159
184
* If `path` is a text file, `view` displays the result of applying `cat -n`. If `path` is a directory, `view` lists non-hidden files and directories up to 2 levels deep
185
+
* If `path` is an image file (.png, .jpg, .jpeg, .gif, .webp, .bmp), `view` displays the image content
160
186
* The `create` command cannot be used if the specified `path` already exists as a file
161
187
* If a `command` generates a long output, it will be truncated and marked with `<response clipped>`
162
188
* The `undo_edit` command will revert the last edit made to the file at `path`
0 commit comments