What problem does it solve?
This Skill provides a robust set of tools to interact with the file system, enabling agents to read file contents, write new files, modify existing ones, and list directory contents, all within a secure, sandboxed environment.
Core Features & Use Cases
- File Reading: View the content of any text file, with options to specify a line range.
- File Writing/Creation: Create new files or overwrite existing ones with specified content.
- String Replacement: Perform unique string replacements within files, with clear feedback on success or failure.
- Line Insertion: Insert new text at a specific line number in a file.
- Directory Listing: Browse the contents of directories, with a depth limit for clarity.
- Image Analysis & Display: Analyze image content using vision capabilities or display images in the UI.
- Use Case: An agent needs to update a configuration file. It can use
file_editor to read the current configuration, identify the line to change, and then use str_replace or insert to apply the necessary modifications.
Quick Start
Use the file_editor skill to read the first 10 lines of the file '/app/config.yaml'.