edit_file
Modify text files by replacing specific line sequences with new content. Preview changes using dryRun before applying. Works within allowed directories and supports customizable edit options, returning a git-style diff.
Instructions
Make line-based edits to a text file. Each edit replaces exact line sequences with new content. Returns a git-style diff showing the changes made. Only works within the allowed directory. Always use dryRun first to preview changes before applying them.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
dryRun | No | Preview changes without applying | |
edits | Yes | List of edit operations | |
options | No | ||
path | Yes | File to edit |
Input Schema (JSON Schema)
You must be authenticated.
Other Tools from AiDD MCP Server
- create_directory
- delete_file
- directory_tree
- edit_file
- execute_code
- execute_shell_script
- get_allowed_directory
- get_file_info
- get_system_info
- git_add
- git_checkout
- git_commit
- git_create_branch
- git_diff
- git_diff_staged
- git_diff_unstaged
- git_init
- git_log
- git_reset
- git_show
- git_status
- list_directory
- move_file
- read_file
- read_multiple_files
- search_files
- tree_sitter_map
- update_allowed_directory
- write_file
Related Tools
- @shariqriazz/vertex-ai-mcp-server
- @alekspetrov/mcp-docs-service
- @famano/mcp-server-office
- @famano/mcp-server-office
- @wonderwhy-er/DesktopCommanderMCP