get_types
Generate TypeScript type declarations for OpenAPI schemas or endpoints, automatically including all dependencies to ensure type safety.
Instructions
Generate self-contained TypeScript type declarations for specified schemas or for all schemas used by a specific endpoint. Endpoint mode follows supported internal component $refs before collecting schema dependencies. Provide exactly one of: "schemas" (array of schema names), "method" + "path" (endpoint), or "operationId". Transitive dependencies are included automatically.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schemas | No | Array of schema names from components/schemas (e.g. ["User", "Address"]) | |
| method | No | HTTP method for endpoint mode (e.g. get, post) | |
| path | No | Endpoint path for endpoint mode (e.g. /users/{id}) | |
| operationId | No | Operation ID to generate types for (e.g. listUsers) |