Home / Projects / NiPlex-Harness / Tools / Files tools / edit_file

Pictures

edit_file

Replaces the whole content of an existing file.

Since 2 Sept 2026

Replaces the whole content of an existing file.

Tool name
edit_file
Group
Files
Risk
medium
Needs approval
never
Approval rule
No approval. Hard blocks apply.
Allowed in scheduled jobs
No
Default
on

Parameters

NameTypeRequiredDefaultMeaningLimits
pathstringYesPath relative to the project, such as vault/note.md.
contentstringYesThe text to store or write.Memory notes are read back into prompts in slices of 4,000 characters (global) or 1,500 (session).

Returns

A confirmation.

Example (made up for this page)

Call
{
  "path": "demo",
  "content": "demo"
}
Result
Updated vault/notes/a.md

Side effects

  • Overwrites a file.

How it can fail

WhenWhat the agent sees
File does not existFile does not exist: path
Protected pathHARD BLOCK

Checked against the source at commit f4fd89f on 29 Oct 2026. Everything here is merged on the main branch; no release has been tagged yet. The source is private, so these pages are the public description.