generate_types
Generate types, a runtime validator, or a full handler from a learned schema — the payoff of the knowledge layer. Everything is derived from the payloads this account ACTUALLY received, with genuinely-optional fields marked optional, instead of a plausible-but-wrong guess from a model's memory of the provider docs. Pass lang for a bare type (typescript / json-schema / zod), or framework (next / express) for a ready-to-paste handler that validates and hands back a fully-typed event.
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": {
"schema_id": "<schema_id>"
},
"name": "generate_types"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Output format for a bare type. | |
| version | No | Version number, or "current" (the default). | |
| framework | No | Return a ready-to-paste handler scaffold instead of a bare type. Overrides lang. | |
| schema_id | Yes | The schema id. |