edit
Modify files precisely by matching old text exactly, verifying expected revision, and returning the actual diff. Read first to ensure accuracy.
Instructions
Precisely edit a file using Pi's real edit implementation. All oldText entries match the original file. Read first and provide expected_revision; returns the actual diff.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path or path relative to the workspace. Home is a starting directory, not a sandbox. | |
| edits | Yes | ||
| request_key | Yes | Unique operation key within this workspace. Reuse only for the exact same request; uncertain outcomes must not be blindly retried. | |
| workspace_id | Yes | ||
| expected_revision | Yes |