Documentação

ctx_edit - Tool Reference

Edit a file via search-and-replace. Works without native Read/Edit tools. Use this when the IDE's Edit tool requires Read but Read is unavailable.

ctx_edit Core Tools

Edit a file via search-and-replace. Works without native Read/Edit tools. Use this when the IDE's Edit tool requires Read but Read is unavailable.

Parameters
5
Required
2

Parameters

Parameter Type Required Description
create boolean No Create a new file with new_string as content (ignores old_string) (default: false)
new_string string Yes Replacement text
old_string string No Exact text to find and replace (must be unique unless replace_all=true)
path string Yes Absolute file path
replace_all boolean No Replace all occurrences (default: false) (default: false)
Schema MD5: 88c3586c298b373fe7c65633d6a3c43e ← Back to all tools