generate_widget
Create dashboard widget definitions for stat, table, list, chart, or custom types, with configurable props and permissions.
Instructions
Generate dashboard widget definitions (stat, table, list, chart, or custom)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| moduleId | Yes | Module ID (kebab-case) | |
| entityKey | No | Entity key for data binding (optional) | |
| widgetKey | Yes | Widget key in format {module-id}.{widget-name} | |
| widgetName | Yes | Widget display name | |
| widgetType | Yes | Widget type | |
| description | Yes | Widget description | |
| permissions | No | Required permissions (optional) | |
| propsSchema | No | Widget props schema (optional) | |
| defaultProps | No | Default prop values (optional) | |
| componentName | No | Custom component name for custom widgets (optional) |