file_editor

Read, write, and manipulate files in a sandboxed environment.

6|2|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/valkryhx/google_adk_agent --skill file-editor-valkryhx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: file_editor
Source: https://github.com/valkryhx/google_adk_agent/tree/main/skills/file_editor
Command: npx skills add https://github.com/valkryhx/google_adk_agent --skill file-editor-valkryhx

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

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'.

Frequently Asked Questions about file_editor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I read specific line ranges from a text file in a sandboxed environment?

Reading specific line ranges from a text file is supported by viewing file content with optional line ranges. This allows you to target specific sections of a file securely within a sandboxed environment.

What is the best way to insert text at a specific line number in a configuration file?

Inserting text at a specific line number in a configuration file is handled through line insertion functions. You can read the current configuration, identify the target line, and insert new text precisely at that location.

Can I use this to analyze and display local or remote images?

Analyzing and displaying local or remote images is supported through specialized functions. These utilize vision capabilities to analyze image content or display images directly within the user interface.

How do I perform unique string replacements within an existing file?

Performing unique string replacements within files allows targeted modifications with clear feedback on success or failure. This ensures precise text updates without needing to rewrite the entire file content.

Does directory listing support depth limits to clarify file structure browsing?

Directory listing supports depth limits to clarify file structure browsing. This restricts how deep the listing goes, making it easier to understand directory contents without overwhelming results.

Are there limitations when modifying files in a sandboxed environment?

Modifying files in a sandboxed environment is restricted to that secure boundary, limiting access to external paths. Operations like string replacement provide clear success or failure feedback to ensure modifications are applied correctly.