generate_pb_schema
Convert TypeScript interfaces or database diagrams into PocketBase schema definitions to streamline database setup and ensure structural consistency.
Instructions
Generate a PocketBase schema based on TypeScript interfaces or database diagram
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": {
"sourceCode": "<sourceCode>"
},
"name": "generate_pb_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | No | Generation options | |
| sourceCode | Yes | TypeScript interface or database diagram to convert to PocketBase schema |