editText
Apply atomic text insertions, deletions, and replacements at specific line and column positions in workspace files.
Instructions
Insert/delete/replace text at 1-based line/col. Atomic multi-edit. Uses VS Code or native fs. Workspace files only.
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": {
"filePath": "<filePath>",
"edits": "<edits>"
},
"name": "editText"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | Save the file after applying edits (default: false) | |
| edits | Yes | Array of edit operations to apply atomically | |
| filePath | Yes | Workspace or absolute path to the file |