read_artifact
Read the raw, editable source of a HyperVault artifact via slug or URL, with optional past version, to inspect and then update.
Instructions
Read the current source of one of the user's artifacts, so you can iterate on it.
Returns the editable source: the raw React/JSX for a JSX artifact (what the page re-wraps and renders), or the stored HTML otherwise — not the wrapped page chrome. Pair it with write_artifact to make an edit: read, modify the returned content, then write it back.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | The artifact's slug (e.g. "my-game-x7k2p9") or full URL (https://hypervault.store/a/my-game-x7k2p9, vanity domains work too). | |
| version | No | Optional version id (from artifact_history) to read a past iteration instead of the current head — useful to inspect or revert to an earlier commit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||