scaffold_widget
Generate a WidgetKit extension for your Xcode project by choosing between static TimelineProvider or configurable AppIntents-based widget types.
Instructions
Generate a WidgetKit extension: 'static' uses TimelineProvider/StaticConfiguration, 'configurable' uses the AppIntents-based WidgetConfigurationIntent/AppIntentConfiguration API (iOS 17+)
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_widget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Widget type (default: "static") | |
| name | Yes | Widget name (e.g., StatusWidget) | |
| outputPath | Yes | Directory to create the file in |