simulate_edit_atomic
Test an edit atomically without managing sessions: applies the change to a temporary session, evaluates impact, and returns net_delta—zero means the edit is safe to apply.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>",
"start_line": "<start_line>",
"start_column": "<start_column>",
"end_line": "<end_line>",
"end_column": "<end_column>",
"new_text": "<new_text>"
},
"name": "simulate_edit_atomic"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | ||
| end_line | Yes | ||
| language | No | ||
| new_text | Yes | ||
| file_path | Yes | ||
| end_column | Yes | ||
| session_id | No | ||
| start_line | Yes | ||
| timeout_ms | No | ||
| start_column | Yes | ||
| workspace_root | No |