Export a .widget file
export_widgetExport a generated widget as a .widget file for Widget Studio. Provide the generationId to get the file contents, or specify a path to save it.
Instructions
Export a generated widget as a .widget file — the Widget Studio editor's format (importable at widgets.chatkit.studio). Pass the generationId from a generate_widget result. Optionally pass a path to also write the file to disk (recommended in local sessions; defaults to .widget in the current directory when path is 'auto').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Where to write the file. 'auto' = <widget-name>.widget in the current directory; omit to skip writing and just return the file contents. | |
| generationId | Yes | The generationId returned by generate_widget in this session. |