simulate_edit
Simulate text edits in files without writing to disk. Apply range-based changes, track versions, and maintain baseline diagnostics within a session for testing modifications.
Instructions
Apply a range edit to a file within a simulation session. Changes are held in-memory only. The session captures baseline diagnostics on first edit to each file, then tracks versions for subsequent edits. Returns the new version number after the edit. All line/column positions are 1-indexed (matching editor line numbers).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| file_path | Yes | ||
| start_line | Yes | ||
| start_column | Yes | ||
| end_line | Yes | ||
| end_column | Yes | ||
| new_text | Yes |