generate_adapter
Poll a REST endpoint and map its fields to a control surface layout's synced value paths, using an optional layout JSON or the working buffer.
Instructions
Generate a REST-poll → MeshSocket adapter that maps an API's fields to a layout's synced valuePaths. Uses the working buffer if no layout_json is given.
Args: base_url: The REST endpoint to poll. 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_adapter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base_url | No | https://api.example.com | |
| layout_json | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |