fast_edit_file
Modify specific parts of a file using predefined text replacements, support for encoding, backup creation, and dry-run previews.
Instructions
파일의 특정 부분을 수정합니다 (Python edit_file과 동일)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
create_backup | No | 백업 파일 생성 여부 | |
dry_run | No | 실제 수정 없이 미리보기만 | |
edits | Yes | 수정 사항 리스트 [{"old_text": "찾을 텍스트", "new_text": "바꿀 텍스트"}] | |
encoding | No | 파일 인코딩 | utf-8 |
path | Yes | 편집할 파일 경로 |
Input Schema (JSON Schema)
{
"properties": {
"create_backup": {
"default": true,
"description": "백업 파일 생성 여부",
"type": "boolean"
},
"dry_run": {
"default": false,
"description": "실제 수정 없이 미리보기만",
"type": "boolean"
},
"edits": {
"description": "수정 사항 리스트 [{\"old_text\": \"찾을 텍스트\", \"new_text\": \"바꿀 텍스트\"}]",
"items": {
"properties": {
"new_text": {
"description": "바꿀 텍스트",
"type": "string"
},
"old_text": {
"description": "찾을 텍스트",
"type": "string"
}
},
"required": [
"old_text",
"new_text"
],
"type": "object"
},
"type": "array"
},
"encoding": {
"default": "utf-8",
"description": "파일 인코딩",
"type": "string"
},
"path": {
"description": "편집할 파일 경로",
"type": "string"
}
},
"required": [
"path",
"edits"
],
"type": "object"
}