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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "generate_service"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layout_json | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |