Skip to main content

Module preview

Module preview 

Source
Expand description

The preview tool: renders a #[preview] function or WaterUI expression and returns the PNG straight to the model.

This tool is served by the water mcp front itself — it is never forwarded to the app child, so it answers even while the app’s first build is still compiling (the preview build and the app build serialize on Cargo’s lock).

Structs§

PreviewArgs
Render a #[preview] function or WaterUI expression to a PNG image.
PreviewTool
The CLI-served preview tool.