create_class
Create a data collection with defined fields to model a new app or feature, then set read/write permissions and generate client types.
Instructions
Create a class (a collection, like a table) with its fields. Use it to design the data model of a new app or feature. Set who may read and write it with update_class_permissions right after, then generate_types for the client code.
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": {
"appObjectId": "<appObjectId>",
"className": "<className>"
},
"name": "create_class"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | Optional initial fields definition (e.g., {"name": {"type": "String"}}) | |
| className | Yes | The class name to create | |
| appObjectId | Yes | The app: its name or objectId (see list_apps) |