simulate_edit_atomic
Simulate code edits to test changes before applying them. This atomic operation creates a session, applies the edit, evaluates the result, and cleans up automatically for quick what-if analysis.
Instructions
One-shot atomic operation: create session, apply edit, evaluate, and destroy. Returns evaluation result. Use for quick what-if checks without managing session lifecycle manually. Requires start_lsp to be called first. All line/column positions are 1-indexed. net_delta: 0 means the edit is safe to apply.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | No | ||
| workspace_root | No | ||
| language | No | ||
| file_path | Yes | ||
| start_line | Yes | ||
| start_column | Yes | ||
| end_line | Yes | ||
| end_column | Yes | ||
| new_text | Yes | ||
| scope | No | ||
| timeout_ms | No |