simulate_edit
Preview file edits in a sandboxed session before committing to disk. Apply range-based changes to see diagnostics and version tracking without altering the actual file.
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 |
|---|---|---|---|
| end_line | Yes | ||
| new_text | Yes | ||
| file_path | Yes | ||
| end_column | Yes | ||
| session_id | Yes | ||
| start_line | Yes | ||
| start_column | Yes |