//! Tools module for the Winx application.
//!
//! This module hosts the individual MCP tool implementations (shell, file IO,
//! image, context save). The live service that wires them to the MCP protocol
//! is [`crate::server::WinxService`].
/// Serialize a tool's structured output to JSON for the MCP result's
/// `structuredContent`, mapping the (practically impossible) failure to a domain
/// error instead of panicking. Used by the read-only `CodeMap` handlers.
pub