isRedactionExemptTool function

bool isRedactionExemptTool(
  1. String name
)

True when name's output must never be redacted: the built-in model-authored tools, or an MCP tool whose name contains a write-ish segment (mcp__server__write_file).

Implementation

bool isRedactionExemptTool(String name) =>
    redactionExemptTools.contains(name) ||
    (name.startsWith('mcp__') && name.contains('write'));