Generate model types
generate_typesGenerate ready-to-paste TypeScript, Swift, Kotlin, or Dart models from the OpenAPI spec for v2 responses using a single request.
Instructions
Ready-to-paste TypeScript, Swift (Codable), Kotlin (kotlinx.serialization) or Dart models for v2 responses, generated from the OpenAPI spec. Uses one request.
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": {
"language": "<language>"
},
"name": "generate_types"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| models | No | Default: ExerciseV2, ExercisePageV2, WorkoutV2, ProgramV2. Others: MediaLinksV2, MuscleV2, RankedPageV2, CaloriesV2, SupplementV2, AccountUsageV2, TrendingV2… | |
| language | Yes |