edit-file
النجوم١٢
التفرعات٠
آخر تحديث٣ أبريل ٢٠٢٦ في ١٨:١٣
Edit an existing file by replacing text
التثبيت
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
SKILL.md
readonlyالقائمة
Edit an existing file by replacing text
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Search the web for up-to-date information using Tavily API
Press a combination of keys simultaneously (e.g., Ctrl+C, Alt+Tab)
Press a single key on the keyboard
Perform a mouse left-click at specified screen coordinates
Perform a mouse double-click at specified screen coordinates
Perform a mouse right-click at specified screen coordinates
| name | edit-file |
| description | Edit an existing file by replacing text |
| context | same |
| args | [{"name":"file_path","description":"Path to the file to edit","required":true},{"name":"old_string","description":"The text to find and replace","required":true},{"name":"new_string","description":"The replacement text","required":true},{"name":"replace_all","description":"If true, replace all occurrences. Defaults to false.","required":false}] |
| tags | ["file","edit","modify"] |
| category | system |
| version | 1.0.0 |
| author | cognitrix |
| allowed-tools | ["Edit"] |
| safety | {"risk-level":"medium"} |
Edit an existing file by replacing text using the Edit tool.
<filepath> old_string="old text" new_string="new text"
<filepath> old_string="old text" new_string="new text" replace_all=true
<filepath> old_string="" new_string="new content" create_if_missing=true
~ for home directory paths