API Reference
FileEditResult
Defined in: tools/builtin/builtin.types.ts:312
The outcome of an edit.
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
path | string | Path that was edited. | tools/builtin/builtin.types.ts:314 |
replaced | boolean | Whether the target string was found and replaced. false is a normal, model-recoverable outcome (the string was simply absent) — NOT an error; the tool surfaces it in the result so the model can retry, the same way a non-zero shell exit is surfaced rather than thrown. A genuinely missing file should make the backend throw, which the loop turns into an error result. | tools/builtin/builtin.types.ts:322 |