append_file
Append content to an existing file, inserting a line ending first when the file lacks one.
Instructions
Append content to an existing file. Inserts the file's line ending first when the file does not already end with one. Example: {"content":"#[test]\nfn new_test() {}\n","path":"tests/test.rs"}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes | ||
| agent_preset | No | When true, replace uses the agent preset: unique, require_change, fuzzy floor 0.90, allow_absent_old false. Off unless set. | |
| expected_sha256 | No | SHA-256 hex of the file's current bytes. If it does not match, the tool returns error_kind stale and writes nothing. |