Save view
generate_viewSave a view the user wants to keep: a page in the view language that renders with live data, like a dashboard, a Markdown document, a feed of posts or a page of generated emails and images. Takes the source, the spec_version it was written against, an optional title and optional state. saved_template_id starts from a view template saved earlier; anything you pass replaces its value. Views are free: no watermark and nothing to unlock. Returns the artifact_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | The view's saved state values, keyed by name. | |
| title | No | A short name the user would recognise. | |
| source | No | The whole view in the view language, one statement per line. | |
| spec_version | No | The view library version the source was written against. | |
| saved_template_id | No | A saved_template_id from list_templates; its inputs seed the ones you pass. |