pub fn display_path(path: &str) -> StringExpand description
Returns the file name component of a path for compact display.
Normalize a path for display by converting Windows backslashes to forward
slashes. Forward slashes are valid path separators on Windows, and unlike
backslashes they are never misinterpreted as escape sequences by the JSON,
markdown, or terminal layers of MCP clients — which corrupted Windows paths
in tool output (e.g. C:\Users\… rendered as CUsers…). See issue #324.