record_edit
Record code edits with file path, line range, original and replacement content for version history tracking.
Instructions
Legacy: Record a code edit for version history tracking. Note: create_file_snapshot is much faster.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | User prompt that led to this edit | |
| endLine | Yes | Ending line number (1-based) of the edit | |
| filePath | Yes | Absolute path to the file being edited | |
| metadata | No | Optional metadata about the generation (model, temperature, etc.) | |
| sessionId | No | Optional session ID to group related edits | |
| startLine | Yes | Starting line number (1-based) of the edit | |
| newContent | Yes | New content that replaced the original | |
| oldContent | Yes | Original content that was replaced |