Expand description
Resolve the pre-edit content for a PostToolUse event.
Lookup order for <root>/<session_id>/<tool_use_id>:
- snapshot file ->
Content <id>.absentmarker ->Absent(file did not exist before the edit)- anything else ->
tool_response.originalFileif present, else the edit strings for Edit/MultiEdit, elseUnavailable.
The hook also writes <id>.after (and <id>.after.absent) at PostToolUse;
see resolve_after.
Enums§
Functions§
- marker_
path <base>.<suffix>. Appends rather than replacing an extension: a tool_use_id liketoolu_01.xwould otherwise have its own suffix overwritten.- resolve
- resolve_
after - Post-edit content as captured by the hook at PostToolUse.
- snapshot_
path