save_dashboard
Save a generated dashboard to the network so the user gets a live, shareable URL: https://capability.network/a/. Pass a manifest — a small declarative DashboardManifest (windows + live-data bindings + actions) conforming to the schema at https://capability.network/ui-kit/v1/manifest.schema.json; the shipped pcc-ui kit renders it identically everywhere (you compose the manifest, the kit renders it — never hand-rolled HTML). WHEN to call this: only when the task needs a surface to watch/approve/compare/reuse (a live job, a value chain, a settlement trail, a recurring order) — never for a one-line answer. RECALL FIRST: call search_dashboards before generating; reload or fork a match instead of duplicating. The manifest MUST NOT contain an API key (a shared artifact travels with its contents — the network rejects one that does). Returns the stored artifact incl. its slug. Defaults visibility to 'unlisted' (link-shareable, not listed).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Short human name for the dashboard, e.g. 'Watch my pizza + courier'. Used to mint the slug. | |
| manifest | Yes | The DashboardManifest (2-6KB JSON) conforming to https://capability.network/ui-kit/v1/manifest.schema.json. Required top-level keys: `csd` (must be 'pcc://artifacts/dashboard/v1'), `title`, and `sections[]` (each section has `windows[]`). Window kinds: note, metric, capability, list, form, run, approval, receipt, chain, actions. Bindings point at live routes you already use (/api/jobs/:id, /api/escrow/:id, /sse/stream/job/:id). No API key anywhere in the manifest. | |
| visibility | No | Who can load it. Default 'unlisted' (anyone with the link; not in listings). 'public' appears in search_dashboards; 'private' is owner-only. | |
| composeRefs | No | Optional pinned, re-plannable ComposeRequest objects (value chains). Pin the request, never a compositionId (those expire in 30 min). | |
| description | No | One-line description of what the dashboard shows. | |
| renderedCid | No | Optional CID of a rendered-HTML export saved via /api/storage. | |
| capabilityTypes | No | Capability types this dashboard is about, e.g. ['pizza.order','courier.dispatch']. This is the discovery join — it's how search_dashboards finds this artifact later. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| slug | No | ||
| manifest | Yes |