generate_service
Generate a Python MeshSocket service that connects to a layout, handles control events, and emits telemetry. Uses the working buffer if no layout JSON is provided.
Instructions
Generate a runnable Python MeshSocket service that speaks to a layout — handles the events its controls fire and emits the telemetry they listen for. Uses the working buffer if no layout_json is given.
Args: layout_json: Optional layout JSON; defaults to the working buffer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layout_json | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |