simulate_edit_atomic
Simulate an edit atomically by creating a temporary session, applying the change, evaluating its impact, and cleaning up. The net_delta value indicates safety (0 means safe).
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 |