Skip to main content

wants_diff

Function wants_diff 

Source
pub fn wants_diff(params: &Value) -> bool
Expand description

Check if the caller requested diff info in the response.

include_diff yields a compact counts-only diff (additions/deletions), which is what agent-facing/raw consumers should use — the payload does not scale with file size. Full before/after content requires the separate include_diff_content flag (UI metadata only); see wants_diff_content.