scaffold_viewmodel
Create an @Observable ViewModel class in a specified directory to manage SwiftUI view state and business logic.
Instructions
Generate an @Observable ViewModel class
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>",
"outputPath": "<outputPath>"
},
"name": "scaffold_viewmodel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ViewModel name (e.g., ProfileViewModel) | |
| outputPath | Yes | Directory to create the file in |