sync: auto-sync from GURU-BEAST-ROG at 2026-06-10 10:09:59
Author: Mike Swanson Machine: GURU-BEAST-ROG Timestamp: 2026-06-10 10:09:59
This commit is contained in:
committed by
ClaudeTools Bot
parent
b75fb56574
commit
7729874549
42
mcps/filesystem/tools/edit_file.json
Normal file
42
mcps/filesystem/tools/edit_file.json
Normal file
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"name": "edit_file",
|
||||
"description": "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 allowed directories.",
|
||||
"inputSchema": {
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"path": {
|
||||
"type": "string"
|
||||
},
|
||||
"edits": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"oldText": {
|
||||
"type": "string",
|
||||
"description": "Text to search for - must match exactly"
|
||||
},
|
||||
"newText": {
|
||||
"type": "string",
|
||||
"description": "Text to replace with"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"oldText",
|
||||
"newText"
|
||||
]
|
||||
}
|
||||
},
|
||||
"dryRun": {
|
||||
"default": false,
|
||||
"description": "Preview changes using git-style diff format",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"path",
|
||||
"edits"
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user