json_to_ts
Convert JSON to TypeScript interfaces locally. Infer type definitions from JSON strings or objects, with depth and size limits for safe agent use.
Instructions
Infer TypeScript interfaces from a JSON string (or object). Local, no LLM. Caps depth/size for agent safety.
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_ts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | Yes | JSON text to convert (preferred) | |
| root_name | No | Root interface name (default Root) |