Immediately edit one existing editable text file and record the applied change in PaperDock's Review changes UI. Provide exactly one target (fileId or path) and exactly one payload: operations, content, or rangeToken with insert. Read the relevant current text first and pass its baseRevision. For a long replacement covering every line returned by an exact read_file.lineRange call, pass its rangeToken with insert; the token is connection-, file-, revision-, range-, and content-bound and expires after 10 minutes. For other focused edits, use sequential UTF-16 operations and copy expectedText exactly from read_file without retyping, normalization, spelling correction, or manual Unicode escaping; insertions use expectedText: "". On a target or history conflict, read again and retry once. Use content only when broadly rewriting most of the file. This tool cannot create, rename, or delete files. Supply a stable requestId for each logical edit and reuse it with the identical payload after a timeout or response loss. Use a new ID after rereading and changing the edit. When apply sessions are enabled, unrelated intervening edits may merge within this call; overlaps, ambiguous insertion order, or unavailable history require a new read. FILE_APPLY_BUSY, FILE_APPLY_LOCKED, and FILE_APPLY_DRAIN_TIMEOUT are temporary deferrals; retry the identical request after synchronization. FILE_APPLY_OUTCOME_UNKNOWN or FILE_APPLY_IN_PROGRESS means the result is being checked, not that nothing was saved: retry with the same requestId. AGENT_REVIEW_RELOAD_REQUIRED needs the user to save or finish earlier Keep/Revert decisions; do not repeatedly retry. FILE_APPLY_DISABLED temporarily stops new AI edits while existing request outcomes remain available. Keep retries bounded. Legacy clients without requestId use a deterministic payload ID. Full rewrites and history replay have bounded sizes and may require a smaller edit or a fresh read.