generate_client
Generate a TypeScript API client from an OpenAPI specification by providing the spec location, output directory, and preferred HTTP client.
Instructions
Generate TypeScript API client from OpenAPI specification
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": {
"input": "<input>",
"output": "<output>",
"httpClient": "<httpClient>"
},
"name": "generate_client"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | URL or file path to OpenAPI specification | |
| output | Yes | Output directory for generated client | |
| httpClient | Yes | HTTP client to use (fetch or axios) |