FileModificationTask
Safe, patch-based file editing with built-in syntax validation and rollback capabilities.
Side-Effect: Destructive
Auto-Fix Supported
Input Configuration
{
"target_file": "src/main/App.kt",
"instructions": "Add a logging statement to the main loop",
"context_lines": 5
}
→
Session UI Output
✔ File Updated Successfully
12 while(running) {
13 + logger.info("Heartbeat")
14 processNext()
13 + logger.info("Heartbeat")
14 processNext()
Live Results Showcase
Explore actual artifacts generated by this task in our repository.
Configuration Parameters
| Field | Type | Description |
|---|---|---|
target_file * |
String | Relative path to the file. Must exist in workspace. |
instructions |
String | Natural language description of the edit desired. |