Generate typed Kovlet connection code
generate_app_connectionGenerate ready-to-use TypeScript that connects a new app to a Data Space with @kovlet/client, typed from the space's live schema: "client" (browser, consent popup), "react" (adds @kovlet/react hooks), or "node" (headless, device-code sign-in, space pinned). Write the returned files into the project.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"space": "<space>",
"app_name": "<app_name>"
},
"name": "generate_app_connection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | Access the app asks for. Default: editor if you can write, else viewer. | |
| slot | No | The logical space name used in code, e.g. "finance". Defaults to one derived from the space name. | |
| space | Yes | The Data Space: its id (from list_spaces), slug or exact name. | |
| tables | No | Only declare these tables. Default: all. | |
| target | No | Default "client". | |
| app_name | Yes | The app's name, shown on the consent screen and in the console. |