Flutter Lens
v0.1.0-alpha.6Render Flutter widgets to real PNGs for coding agents, locally and without an emulator.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
plan_flutter_preview
Read-only heuristic constructor and dependency hints for an existing Flutter widget.
| Parameter | Type | Description |
|---|---|---|
file * | string | |
widget * | string | |
project | string | Relative project folder inside the configured workspace. Defaults to . |
inspect_png
Validate an existing workspace PNG and return dimensions and hash.
| Parameter | Type | Description |
|---|---|---|
file * | string |
compare_screens
Compare two existing workspace-relative PNG screenshots of the same viewport; returns change metrics and a highlighted PNG diff.
| Parameter | Type | Description |
|---|---|---|
after * | string | |
before * | string | |
threshold | integer |
list_frameworks
List supported, experimental and planned frameworks.
list_devices
List headless viewport presets.
discover_screens
Find candidate Flutter widgets by source inspection (heuristic).
| Parameter | Type | Description |
|---|---|---|
project | string | Relative project folder inside the configured workspace. Defaults to . |
render_screen
Render a trusted Flutter preview to a real PNG. For Flutter use file and widget or fixture; experimental SwiftUI requires framework swiftui, macOS and an explicit Swift fixture; Compose requires framework compose, gradleTask and testClass.
| Parameter | Type | Description |
|---|---|---|
device | string | |
diagnostics | boolean | Flutter only: opt in to bounded render-tree layout/semantics diagnostics without copying text. |
file | string | |
fixture | string | |
fontFile | string | |
framework | string | |
gradleTask | string | |
height | integer | |
outputFile | string | Optional new project-relative PNG path. Parent must exist; never overwrites. |
pixelRatio | number | |
project | string | Relative project folder inside the configured workspace. Defaults to . |
settleMs | integer | |
sources | array | |
testClass | string | |
theme | string | |
widget | string | |
width | integer |