write_app_artifact
Save an ARTIFACT into an app: the app's own output or saved state, owned by you. An artifact is what get_app_artifact reads back later | a Plotly chart specification, a saved report configuration, a board, a screener view, a table of World Bank or SEC figures the app computed. Give type (your own label, e.g. "chart", "report", "board"), a title, and spec and/or data as JSON. Pass artifact_id to patch one you already wrote instead of creating another. Use it right after create_app to seed the app with something real, or whenever a user asks you to save a view. You may write into any app you can open; someone else's private app answers "not found".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Optional inline data belonging to the artifact. | |
| spec | No | The saved view/configuration as JSON (e.g. a Plotly spec, a filter set). | |
| type | No | Your own label for the kind of artifact, e.g. "chart", "report", "board". Required when creating. | |
| title | No | Human title shown in the app and in get_app_artifact. | |
| app_id | Yes | The app the artifact belongs to. | |
| visibility | No | Who may read the artifact. Default private. | |
| artifact_id | No | Omit to CREATE. Give an existing artifact id to PATCH that one. |