pub fn anyhow_to_tool_err(err: Error) -> String
Convert an anyhow error to a tool error (string message).