fast_edit_block
Edit file blocks securely by matching exact text strings with advanced precision. Specify paths, old/new text, and optional parameters like word boundaries or case sensitivity for targeted modifications.
Instructions
정교한 블록 편집: 정확한 문자열 매칭으로 안전한 편집 (desktop-commander 방식)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
backup | No | 백업 생성 | |
case_sensitive | No | 대소문자 구분 | |
expected_replacements | No | 예상 교체 횟수 (안전성을 위해) | |
new_text | Yes | 새로운 텍스트 | |
old_text | Yes | 정확히 매칭할 기존 텍스트 (최소 컨텍스트 포함) | |
path | Yes | 편집할 파일 경로 | |
preview_only | No | 미리보기만 (실제 편집 안함) | |
word_boundary | No | 단어 경계 검사 (부분 매칭 방지) |
Input Schema (JSON Schema)
{
"properties": {
"backup": {
"default": true,
"description": "백업 생성",
"type": "boolean"
},
"case_sensitive": {
"default": true,
"description": "대소문자 구분",
"type": "boolean"
},
"expected_replacements": {
"default": 1,
"description": "예상 교체 횟수 (안전성을 위해)",
"type": "number"
},
"new_text": {
"description": "새로운 텍스트",
"type": "string"
},
"old_text": {
"description": "정확히 매칭할 기존 텍스트 (최소 컨텍스트 포함)",
"type": "string"
},
"path": {
"description": "편집할 파일 경로",
"type": "string"
},
"preview_only": {
"default": false,
"description": "미리보기만 (실제 편집 안함)",
"type": "boolean"
},
"word_boundary": {
"default": false,
"description": "단어 경계 검사 (부분 매칭 방지)",
"type": "boolean"
}
},
"required": [
"path",
"old_text",
"new_text"
],
"type": "object"
}