generate_typescript_dto
Generate TypeScript DTO type declarations from OpenAPI component schemas, including referenced nested types, for API contract integration.
Instructions
Generate TypeScript DTO type declarations from OpenAPI components schema. Includes referenced nested DTO types.
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": {
"backendId": "<backendId>",
"schemaName": "<schemaName>"
},
"name": "generate_typescript_dto"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| backendId | Yes | Required backend id from list_backends. | |
| schemaName | Yes | Component schema name under #/components/schemas. | |
| specUrl | No | Optional docs URL override for this call. |