generate_code_example
Generate a complete TypeScript code example for any API endpoint by specifying the API name, path, and HTTP method.
Instructions
Generate a complete TypeScript code example for an endpoint
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": {
"api_name": "<api_name>",
"path": "<path>",
"method": "<method>"
},
"name": "generate_code_example"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_name | Yes | API name (e.g., "hetzner/cloud", "ory/kratos") | |
| path | Yes | Endpoint path | |
| method | Yes | HTTP method |