Live Artifacts
A live artifact is an HTML artifact backed by one or more connector data sources. On refresh, the agent re-fetches data, re-renders the artifact, and records a new version — without re-running discovery or re-picking a direction.
| Aspect | Static artifact | Live artifact |
|---|---|---|
| Data source | Hardcoded content | Connector-backed (Notion, databases, APIs) |
| Updates | Manual regeneration | On-demand or scheduled refresh |
| History | Conversation-based | Refresh log with delta tracking |
| Failure recovery | — | Staleness detection + retry |
Lifecycle
Creation
- The agent builds the artifact and wires it to connector data sources.
- It registers the artifact through the live-artifacts tool surface, naming its dependencies.
- A manifest records the artifact, its data sources, and the run that created it.
Refresh
- Trigger — manual, scheduled, or via the tool surface.
- Fetch — each connected data source is called; only refresh-eligible tools participate.
- Re-render — the artifact is updated with fresh values.
- Persist — a new version is written with a refresh-log entry.
- Display — the preview updates.
Failure handling
| Mechanism | Behaviour |
|---|---|
| Staleness detection | A failed refresh marks the artifact stale rather than showing wrong data as current |
| Refresh locks | Prevents concurrent refreshes of the same artifact |
| Abort | An in-progress refresh can be cancelled |
| Retry | Stale artifacts can be retried manually |
Refresh eligibility
Not every connector tool may run during a refresh. A tool is refresh-eligible only when its safety classification proves it read-only with an automatic approval policy:
sideEffect === 'read' && approval === 'auto'
Anything classified write, destructive, or unknown is excluded. This is the rule that keeps a scheduled refresh from mutating your CRM.
Surfaces
In the app
Create a project with the Live artifact intent, or open an existing artifact from the Designs tab. The preview shows the artifact with badges for its freshness state, and the refresh history lists each run.
Over MCP
tfdesign mcp live-artifacts exposes six tools:
| Tool | Purpose |
|---|---|
live_artifacts_create | Register an artifact with its dependencies |
live_artifacts_list | List registered artifacts |
live_artifacts_update | Update an artifact |
live_artifacts_refresh | Trigger a refresh |
connectors_list | Discover connectors and their tools |
connectors_execute | Execute a connector tool |
Over the CLI
"$OD_NODE_BIN" "$OD_BIN" tools live-artifacts list --format compact
"$OD_NODE_BIN" "$OD_BIN" tools live-artifacts create --input artifact.json
"$OD_NODE_BIN" "$OD_BIN" tools live-artifacts update --artifact-id <id> --input artifact.json
"$OD_NODE_BIN" "$OD_BIN" tools live-artifacts refresh --artifact-id <id>
These require OD_TOOL_TOKEN. The project id comes from the token, not from the request: supplying a different projectId is rejected with 403 FORBIDDEN. The same applies to the originating run id — a caller cannot forge provenance.
Routes
| Endpoint | Method | Description |
|---|---|---|
/api/live-artifacts | GET / POST | List / create |
/api/live-artifacts/:artifactId | GET / PATCH / DELETE | Manage one artifact |
/api/live-artifacts/:artifactId/preview | GET | Rendered preview |
/api/live-artifacts/:artifactId/refreshes | GET | Refresh history |
/api/live-artifacts/:artifactId/refresh | POST | Trigger a refresh |
/api/tools/live-artifacts/create | POST | Agent-facing create (token-authed) |
/api/tools/live-artifacts/list | GET | Agent-facing list (token-authed) |
/api/tools/live-artifacts/update | POST | Agent-facing update (token-authed) |
/api/tools/live-artifacts/refresh | POST | Agent-facing refresh (token-authed) |
Use cases
- Sales pipeline — refresh from CRM connector data.
- Team status — pull from project management tools.
- Financial summary — latest accounting exports.
- Service health — monitoring APIs.
- Inventory — current stock from commerce connectors.
Requirements
Live artifacts need at least one configured connector. Without one there is nothing to refresh and the artifact is just a static page — see Connectors.
The agent picks data sources from the brief and the available connectors. Being explicit in the brief about which system holds the data produces far better results than "make it live": the agent cannot invent a connector you have not authenticated.