fast_edit_multiple_blocks
Edit multiple sections of a file simultaneously by specifying paths, text changes, and modes like replace, insert, or delete. Includes backup creation for safe modifications.
Instructions
파일의 여러 부분을 한 번에 편집합니다
Input Schema
Name | Required | Description | Default |
---|---|---|---|
backup | No | 백업 생성 | |
edits | Yes | 편집 작업 목록 | |
path | Yes | 편집할 파일 경로 |
Input Schema (JSON Schema)
{
"properties": {
"backup": {
"default": true,
"description": "백업 생성",
"type": "boolean"
},
"edits": {
"description": "편집 작업 목록",
"items": {
"properties": {
"line_number": {
"description": "라인 번호",
"type": "number"
},
"mode": {
"default": "replace",
"enum": [
"replace",
"insert_before",
"insert_after",
"delete_line"
],
"type": "string"
},
"new_text": {
"description": "새로운 텍스트",
"type": "string"
},
"old_text": {
"description": "찾을 기존 텍스트",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"path": {
"description": "편집할 파일 경로",
"type": "string"
}
},
"required": [
"path",
"edits"
],
"type": "object"
}