generate_type
Creates a TypeScript type or interface in a Nuxt 4 project. Specify the type name and file path to add new types to your codebase.
Instructions
Generate a TypeScript type/interface in the target Nuxt 4 codebase.
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": {
"name": "<name>",
"relativePath": "<relativePath>"
},
"name": "generate_type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the type (e.g., 'User', 'Product') | |
| relativePath | Yes | Relative path in target (e.g., 'types/User.ts') | |
| module | No | Optional module name to prefix path (e.g., 'deals', 'tickets') | |
| targetPath | No | Optional absolute target path override |