JSON to TypeScript
json-to-typescriptInfer TypeScript interface definitions from JSON samples.
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": {
"json": "<json>"
},
"name": "json-to-typescript"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | JSON sample to infer TypeScript types from | |
| rootName | No | Name for the root interface | Root |
| exportTypes | No | Add export keyword to interfaces |