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§
- Preview
Args - Render a
#[preview]function orWaterUIexpression to a PNG image. - Preview
Tool - The CLI-served
previewtool.