Studio: add an edit_file tool so agents stop rewriting whole files (#8753)