- Source: native-reference-match
Tool Description: … - Source: native-prompt-markdown-tool Summary Performs exact string replacements in files.
| Expression | Hint | Reference |
|---|---|---|
EXPR_1 |
None | None |
EXPR_2 |
None | None |
- Source: native-reference-match
Tool Description: … - Source: native-prompt-markdown-tool Summary Performs exact string replacements in files.
| Expression | Hint | Reference |
|---|---|---|
EXPR_1 |
None | None |
EXPR_2 |
None | None |
- Source: native-reference-match
Tool Description: … - Source: native-prompt-markdown-tool Summary Performs exact string replacements in files.
| Expression | Hint | Reference |
|---|---|---|
EXPR_1 |
None | None |
EXPR_2 |
None | None |
- Source: native-reference-match
Tool Description: … - Source: native-prompt-markdown-tool Summary Performs exact string replacements in files.
| Expression | Hint | Reference |
|---|---|---|
EXPR_1 |
None | None |
EXPR_2 |
None | None |
- Source: native-reference-match
Tool Description: … - Source: native-prompt-markdown-tool Summary Performs exact string replacements in files.
| Expression | Hint | Reference |
|---|---|---|
EXPR_1 |
None | None |
EXPR_2 |
None | None |
- Source: native-reference-match
Tool Description: … - Source: native-prompt-markdown-tool Summary Performs exact string replacements in files.
| Expression | Hint | Reference |
|---|---|---|
EXPR_1 |
None | None |
EXPR_2 |
None | None |
- Source: native-reference-match
Tool Description: … - Source: native-prompt-markdown-tool Summary Performs exact string replacements in files.
| Expression | Hint | Reference |
|---|---|---|
EXPR_1 |
None | None |
EXPR_2 |
None | None |
- Source: native-reference-match
Tool Description: … - Source: native-prompt-markdown-tool Summary Performs exact string replacements in files.
| Expression | Hint | Reference |
|---|---|---|
EXPR_1 |
None | None |
EXPR_2 |
None | None |
- Source: native-reference-match
Tool Description: … - Source: native-prompt-markdown-tool Summary Performs exact string replacements in files.
| Expression | Hint | Reference |
|---|---|---|
EXPR_1 |
None | None |
EXPR_2 |
None | None |
- Source: native-reference-match
Tool Description: … - Source: native-prompt-markdown-tool Summary Performs exact string replacements in files.
| Expression | Hint | Reference |
|---|---|---|
EXPR_1 |
None | None |
EXPR_2 |
None | None |
- Source: native-reference-match
Tool Description: … - Source: native-prompt-markdown-tool Summary Performs exact string replacements in files.
| Expression | Hint | Reference |
|---|---|---|
EXPR_1 |
None | None |
EXPR_2 |
None | None |
- Source: native-reference-match
Tool Description: … - Source: native-prompt-markdown-tool Summary Performs exact string replacements in files.
| Expression | Hint | Reference |
|---|---|---|
EXPR_1 |
None | None |
EXPR_2 |
None | None |
- Source: native-reference-match
Tool Description: … - Source: native-prompt-markdown-tool Summary Performs exact string replacements in files.
| Expression | Hint | Reference |
|---|---|---|
EXPR_1 |
None | None |
EXPR_2 |
None | None |
- Source: native-reference-match
Tool Description: … - Source: native-prompt-markdown-tool Summary Performs exact string replacements in files.
| Expression | Hint | Reference |
|---|---|---|
EXPR_1 |
None | None |
EXPR_2 |
None | None |
- Source: native-reference-match
Tool Description: … - Source: native-prompt-markdown-tool Summary Performs exact string replacements in files.
| Expression | Hint | Reference |
|---|---|---|
EXPR_1 |
None | None |
EXPR_2 |
None | None |
- Source: native-reference-match
Tool Description: … - Source: native-prompt-markdown-tool Summary Performs exact string replacements in files.
| Expression | Hint | Reference |
|---|---|---|
EXPR_1 |
None | None |
EXPR_2 |
None | None |
- Source: native-reference-match
Tool Description: … - Source: native-prompt-markdown-tool Summary Performs exact string replacements in files.
| Expression | Hint | Reference |
|---|---|---|
EXPR_1 |
None | None |
EXPR_2 |
None | None |
- Source: native-reference-match
Tool Description: … - Source: native-prompt-markdown-tool Summary Performs exact string replacements in files.
| Expression | Hint | Reference |
|---|---|---|
EXPR_1 |
None | None |
EXPR_2 |
None | None |
- Source: native-reference-match
Tool Description: … - Source: native-prompt-markdown-tool Summary Performs exact string replacements in files.
| Expression | Hint | Reference |
|---|---|---|
EXPR_1 |
None | None |
EXPR_2 |
None | None |
- Source: native-prompt-markdown-tool
Performs exact string replacements in files.
Performs exact string replacements in files.
Usage:
- You must use your
Readtool at least once in the conversation before editing. This tool will error if you attempt an edit without reading the file. - When editing text from Read tool output, ensure you preserve the exact indentation (tabs${EXPR_1}) as it appears AFTER the line number prefix. The line number prefix format is: line number + tab. Everything after that is the actual file content to match. Never include any part of the line number prefix in the old_string or new_string.
- ALWAYS prefer editing existing files in the codebase. NEVER write new files unless explicitly required.
- Only use emojis if the user explicitly requests it. Avoid adding emojis to files unless asked.
- The edit will FAIL if
old_stringis not unique in the file. Either provide a larger string with more surrounding context to make it unique or usereplace_allto change every instance ofold_string. - Use
replace_allfor replacing and renaming strings across the file. This parameter is useful if you want to rename a variable for instance. { "$schema": "${EXPR_2} "type": "object", "properties": { "file_path": { "description": "The absolute path to the file to modify", "type": "string" }, "old_string": { "description": "The text to replace", "type": "string" }, "new_string": { "description": "The text to replace it with (must be different from old_string)", "type": "string" }, "replace_all": { "description": "Replace all occurrences of old_string (default false)", "default": false, "type": "boolean" } }, "required": [ "file_path", "old_string", "new_string" ], "additionalProperties": false }