infer_layout
Infers a control layout from a JSON sample, mapping data types to appropriate UI widgets like gauges, progress rings, toggles, maps, and lists.
Instructions
Infer a wired first-draft layout from a real JSON payload (paste a sample from your service, or use probe_service to capture one). Numbers→gauges, 0..1→progress rings, bools→toggles, lat/lng→map, arrays→sparklines/cardlists, strings→labels — each bound to the right nested valuePath.
Args: payload_json: A sample JSON object emitted by your service. name: Layout name. event: The mesh event the controls should listen on (default 'telemetry'). columns, rows: Grid of the inferred tab. into_buffer: Load the result into the working buffer for further editing (default).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Inferred | |
| rows | No | ||
| event | No | telemetry | |
| columns | No | ||
| into_buffer | No | ||
| payload_json | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |