viznoir
v0.10.1Cinema-quality science visualization for AI agents — headless VTK via MCP.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
inspect_data Inspect Data
Inspect a simulation file and return metadata. Returns bounds, point/cell arrays with ranges, timestep info, and multiblock structure. Use this first to understand what data is available before rendering or extracting.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to the simulation file (e.g., /data/cavity.foam, /data/beam.vtu) |
render Render
Render a field visualization and return a PNG screenshot.
| Parameter | Type | Description |
|---|---|---|
field_name * | string | Name of the field to visualize (e.g., "p", "U", "T") |
file_path * | string | Path to simulation file |
association | string | "POINTS" or "CELLS" |
blocks | Multiblock region names to include | |
camera | string | Camera preset — isometric, top, front, right, left, back |
colormap | string | Color map preset (e.g., "Cool to Warm", "Viridis", "Jet") |
height | Override height in pixels (must set both width and height, or neither) | |
output_filename | string | Output PNG filename (e.g., "snapshot_press.png") |
purpose | string | Resolution preset — "analyze" (480p), "preview" (720p), "publish" (1080p) |
scalar_range | [min, max] for color scale, None for auto | |
timestep | Specific timestep, "latest", or None for first | |
width | Override width in pixels (must set both width and height, or neither) |
slice Slice
Create a slice (cut plane) visualization.
| Parameter | Type | Description |
|---|---|---|
field_name * | string | Field to visualize on the slice |
file_path * | string | Path to simulation file |
camera | string | Camera preset |
colormap | string | Color map preset |
height | Override height in pixels (must set both width and height, or neither) | |
normal | Slice plane normal [nx, ny, nz] | |
origin | Slice plane origin [x, y, z] | |
purpose | string | Resolution preset — "analyze" (480p), "preview" (720p), "publish" (1080p) |
timestep | Timestep selection | |
width | Override width in pixels (must set both width and height, or neither) |
contour Contour
Create an iso-surface (contour) visualization.
| Parameter | Type | Description |
|---|---|---|
field_name * | string | Field for iso-surface extraction |
file_path * | string | Path to simulation file |
isovalues * | array | List of iso-values to extract |
camera | string | Camera preset |
colormap | string | Color map preset |
height | Override height in pixels (must set both width and height, or neither) | |
purpose | string | Resolution preset — "analyze" (480p), "preview" (720p), "publish" (1080p) |
timestep | Timestep selection | |
width | Override width in pixels (must set both width and height, or neither) |
clip Clip
Create a clipped visualization.
| Parameter | Type | Description |
|---|---|---|
field_name * | string | Field to visualize |
file_path * | string | Path to simulation file |
camera | string | Camera preset |
colormap | string | Color map preset |
height | Override height in pixels (must set both width and height, or neither) | |
invert | boolean | If True, keep the other side |
normal | Clip plane normal [nx, ny, nz] | |
origin | Clip plane origin [x, y, z] | |
purpose | string | Resolution preset — "analyze" (480p), "preview" (720p), "publish" (1080p) |
timestep | Timestep selection | |
width | Override width in pixels (must set both width and height, or neither) |
streamlines Streamlines
Create a streamline visualization for vector fields.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to simulation file |
vector_field * | string | Name of the vector field (e.g., "U") |
camera | string | Camera preset |
colormap | string | Color map preset |
height | Override height in pixels (must set both width and height, or neither) | |
max_length | number | Maximum streamline length |
purpose | string | Resolution preset — "analyze" (480p), "preview" (720p), "publish" (1080p) |
seed_point1 | Start of seed line [x, y, z] | |
seed_point2 | End of seed line [x, y, z] | |
seed_resolution | integer | Number of seed points |
timestep | Timestep selection | |
width | Override width in pixels (must set both width and height, or neither) |
plot_over_line Plot Over Line
Sample field values along a line between two points. Returns coordinate arrays and field values for plotting.
| Parameter | Type | Description |
|---|---|---|
field_name * | string | Field to sample |
file_path * | string | Path to simulation file |
point1 * | array | Start point [x, y, z] |
point2 * | array | End point [x, y, z] |
resolution | integer | Number of sample points |
timestep | Timestep selection |
extract_stats Extract Stats
Extract statistical summary (min/max/mean/std) for fields.
| Parameter | Type | Description |
|---|---|---|
fields * | array | List of field names to analyze |
file_path * | string | Path to simulation file |
blocks | Multiblock region names | |
timestep | Timestep selection |
integrate_surface Integrate Surface
Integrate a field over a surface to compute forces, areas, or fluxes.
| Parameter | Type | Description |
|---|---|---|
field_name * | string | Field to integrate (e.g., "p", "wallShearStress") |
file_path * | string | Path to simulation file |
boundary | Boundary/block name to extract (e.g., "wall", "inlet") | |
timestep | Timestep selection |
animate Animate
Create an animation from time series data or camera orbit. Time mapping (timesteps mode): speed_factor=1.0: real-time (physics 1s = video 1s) speed_factor=5.0: 5x fast-forward speed_factor=0.2: 5x slow-motion (physics 1s = video 5s) For VTK file series (e.g., PartFluid_0000.vtk through PartFluid_0100.vtk), use 'files' with an explicit list or 'file_pattern' with a glob pattern.
| Parameter | Type | Description |
|---|---|---|
field_name * | string | Field to visualize |
file_path * | string | Path to simulation file (or first file in series) |
camera | string | Camera preset (used for initial view in orbit mode) |
colormap | string | Color map preset |
file_pattern | Glob pattern for file series (e.g., "/data/PartFluid_*.vtk") | |
files | Explicit list of file paths for VTK time series | |
fps | integer | Frames per second (15-60) |
height | integer | Frame height |
mode | string | "timesteps" for time series, "orbit" for camera rotation |
orbit_duration | number | Orbit video length in seconds (orbit mode only) |
output_format | string | Output format — "frames" (PNG only), "mp4", "webm", or "gif" |
speed_factor | number | Playback speed multiplier (1.0=real-time) |
text_overlay | Text to overlay on video frames (e.g., case name) | |
time_range | [start, end] physics time range, None for all | |
video_quality | integer | Video CRF quality (lower=better, 18-28 typical, default 23) |
width | integer | Frame width |
split_animate Split Animate
Create a split-pane synchronized animation with multiple views. Render 2-4 panes in a grid layout, combining 3D visualizations with time-series graphs. All panes are timestep-synchronized and output as a single GIF or PNG sequence.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to simulation file (PVD, foam, etc.) |
panes * | array | List of pane definitions (render or graph) |
fps | integer | Frames per second (15-60) |
gif | boolean | Generate animated GIF (True) or PNG sequence only (False) |
layout | Grid layout {"rows": 2, "cols": 2, "gap": 4} | |
resolution | Total output [width, height] in pixels | |
speed_factor | number | Playback speed (1.0=real-time, 5.0=5x fast-forward) |
time_range | [start, end] physics time range |
pv_isosurface Pv Isosurface
Run DualSPHysics IsoSurface to generate VTK surface mesh files. Converts bi4 particle data into VTK surface meshes (iso-surfaces). The output files can then be used with animate() or render() via SourceDef(files=[...]) for visualization.
| Parameter | Type | Description |
|---|---|---|
bi4_dir * | string | Directory containing bi4 data files |
output_dir * | string | Directory for output VTK surface mesh files |
docker_image | string | Docker image with IsoSurface tool |
only_type | string | Particle type filter (e.g., "+fluid") |
vars | string | Variable selection (e.g., "+vel,+press,+rhop") |
execute_pipeline Execute Pipeline
Execute a custom pipeline definition (advanced). Accepts a full PipelineDefinition JSON for maximum flexibility. This is the primary interface for CFD/FEA/CAE specialist agents. The pipeline JSON structure: { "source": {"file": "/data/file.foam", "timestep": "latest"}, "pipeline": [ {"filter": "Slice", "params": {"origin": [0,0,0], "normal": [1,0,0]}}, {"filter": "Calculator", "params": {"expression": "mag(U)", "result_name": "Umag"}} ], "output": { "type": "image", "render": {"field": "Umag", "colormap": "Viridis"} } } Available filters:…
| Parameter | Type | Description |
|---|---|---|
pipeline * | object | Complete PipelineDefinition as JSON dict |
cinematic_render Cinematic Render
Cinematic-quality rendering with auto-framing, 3-point lighting, SSAO, and PBR. Produces publication/presentation-quality images with: - PCA-based auto-camera: analyzes object shape and picks optimal viewing angle - 3-point cinematic lighting (key + fill + rim) - SSAO (Screen-Space Ambient Occlusion) for contact shadows - FXAA anti-aliasing - Gradient backgrounds - PBR material support (metallic/roughness) Quality presets: - draft: 960x540, no post-processing (fast preview) - standard: 1920x1080, SSAO + FXAA - cinematic: 1920x1080, all effects + ground plane - ultra: 3840x2160, all effects +…
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to simulation file |
azimuth | Camera azimuth in degrees (None for auto from shape analysis) | |
background | Background preset (dark_gradient, light_gradient, blue_gradient, publication, None) | |
colormap | string | Color map preset (e.g., "Cool to Warm", "Viridis") |
elevation | Camera elevation in degrees (None for auto from shape analysis) | |
field_name | Field to visualize (None for auto-detect) | |
fill_ratio | number | How much of viewport the object fills (0.0-1.0, default 0.75) |
fxaa | boolean | Enable Fast Approximate Anti-Aliasing |
ground_plane | boolean | Add a semi-transparent ground plane for shadow catching |
height | Override image height (None uses quality preset) | |
lighting | Lighting preset (cinematic, dramatic, studio, publication, outdoor, None) | |
metallic | number | PBR metallic factor (0.0-1.0) |
output_filename | string | Output PNG filename |
quality | string | Rendering quality preset |
roughness | number | PBR roughness factor (0.0-1.0) |
scalar_range | [min, max] for color scale, None for auto | |
ssao | boolean | Enable Screen-Space Ambient Occlusion |
timestep | Specific timestep, "latest", or None for first | |
width | Override image width (None uses quality preset) |
volume_render Volume Render
Volume render 3D data (CT, MRI, CFD fields) with transfer function presets. Presets: generic, ct_bone, ct_tissue, mri_brain, thermal, isosurface_like
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to volumetric data (VTI, VTK structured grid, etc.) |
background | Background preset | |
colormap | string | Color map preset |
field_name | Scalar field to render, None for active scalars | |
height | Image height in pixels | |
lighting | Lighting preset | |
output_filename | string | Output filename |
quality | string | Render quality (draft/standard/cinematic/ultra/publication) |
scalar_range | [min, max] for color scale | |
timestep | Specific timestep, "latest", or None | |
transfer_preset | string | Opacity preset (ct_bone, ct_tissue, mri_brain, thermal, generic, isosurface_like) |
width | Image width in pixels |
compare Compare
Compare two simulation results side-by-side or as a difference map. Renders both datasets with identical camera, colormap, and scalar range for direct visual comparison. Essential for design comparison, mesh convergence studies, and solver validation. Modes: - side_by_side: Two panels with shared colorbar and consistent framing - diff: Absolute field difference map (|A - B|) rendered on dataset A's mesh
| Parameter | Type | Description |
|---|---|---|
file_a * | string | Path to first simulation file |
file_b * | string | Path to second simulation file |
colormap | string | Color map preset for both panels |
field_name | Field to compare (None for auto-detect) | |
height | Override height in pixels (must set both width and height, or neither) | |
label_a | string | Label for first panel (displayed top-left) |
label_b | string | Label for second panel (displayed top-left) |
mode | string | Comparison mode — "side_by_side" or "diff" |
output_filename | string | Output PNG filename |
purpose | string | Resolution preset — "analyze" (480p), "preview" (720p), "publish" (1080p) |
quality | string | Rendering quality (draft/standard/cinematic) |
scalar_range | Shared [min, max] for consistent coloring (None for auto) | |
timestep | Specific timestep, "latest", or None for first | |
width | Override total width in pixels (must set both width and height, or neither) |
probe_timeseries Probe Timeseries
Sample a field value at a fixed point across timesteps. Useful for monitoring pressure/velocity at a sensor location over time. Returns dict with times and values arrays.
| Parameter | Type | Description |
|---|---|---|
field_name * | string | |
file_path * | string | |
point * | array | |
file_pattern | ||
files | ||
time_range |
batch_render Batch Render
Render multiple fields from the same dataset in one call. Returns a dict with images list, each containing field name and base64 PNG. Useful for comparing pressure, velocity, temperature, etc. side-by-side.
| Parameter | Type | Description |
|---|---|---|
fields * | array | List of field names to render |
file_path * | string | Path to simulation file |
camera | string | Camera preset |
colormap | string | Color map preset |
height | Override height in pixels (must set both width and height, or neither) | |
purpose | string | Resolution preset — "analyze" (480p), "preview" (720p), "publish" (1080p) |
quality | string | Rendering quality (draft/standard/cinematic) |
timestep | Timestep selection | |
width | Override width in pixels (must set both width and height, or neither) |
preview_3d Preview 3D
Export dataset to glTF/glB for interactive 3D viewing in a browser. Returns the exported file path and a viewer URL hint. Requires VTK >= 9.4 with vtkGLTFExporter support.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | |
field_name | ||
output_filename | string | |
timestep |
inspect_physics Inspect Physics
Extract structured physics data for AI storytelling. Analyzes simulation data to extract: - L2 FieldTopology: vortex detection (Q-criterion), critical points, centerline profiles, gradient statistics per field - L3 CaseContext: boundary conditions, transport properties, solver info, mesh quality, derived quantities (Re, Ma, etc.) Returns structured JSON for LLM to build physics narratives. Replaces analyze_data with quantitative topology data instead of hardcoded heuristics.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to VTK/OpenFOAM/CGNS simulation file |
case_dir | OpenFOAM case directory for full solver metadata. If None, only mesh quality is extracted. | |
fields | Specific field names to analyze (None = all fields) | |
probe_lines | integer | Number of auto centerline probe lines (1-3) |
vortex_threshold | number | Q-criterion threshold for vortex detection |
analyze_data Analyze Data
[DEPRECATED — use inspect_physics instead] Analyze VTK/simulation data. This tool is deprecated. Use inspect_physics for structured physics data extraction with vortex detection, critical points, and solver metadata.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to VTK/OpenFOAM/CGNS file |
domain | Physics domain hint — "cfd", "fea", "thermal" (None for auto-detect) | |
focus | Analyze only this field (None for all fields) |
compose_assets Compose Assets
Compose multiple assets into a deliverable format.
| Parameter | Type | Description |
|---|---|---|
assets * | array | List of asset definitions (dicts with 'type' and type-specific keys) |
fps | integer | Frames per second for video export (default 30) |
height | integer | Output height in pixels (default 1080) |
layout | string | Layout mode — "story", "grid", "slides", or "video" |
scenes | Scene definitions for video layout (list of dicts with asset_indices, duration, transition) | |
title | Optional title text (used in story layout) | |
width | integer | Output width in pixels (default 1920) |
auto_postprocess Auto Postprocess
Autonomous post-processing: inspect → visualize → evaluate → refine. Analyzes the file, detects the simulation domain (CFD/FEA/SPH), and produces 3-5 visualizations automatically. With sampling-capable clients, evaluates results and refines parameters iteratively.
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Path to simulation file (.foam, .vtu, .vtk, etc.) |
goal | string | "explore" (overview), "publish" (publication quality), "compare" (multi-field) |
max_iterations | integer | Maximum refinement iterations (1-5) |