pub fn write_payload(
tool: &str,
args: Option<&Map<String, Value>>,
) -> Option<(String, &'static str)>Expand description
Map a write/action tool call to the outbound payload the egress DLP must
inspect, plus its audit kind (“Write”/“Action”). Single source of truth for
the MCP dispatch gate (server::call_tool) AND the CLI policy enforce
mirror, so the two gates can never drift. None → the tool carries no
governed egress payload.
ctx_patch (#1008) can carry several write bodies in one call — top-level
new_text (anchored ops / create / replace_symbol) and each ops[].new_text
of a batch — all are concatenated for inspection.