---
name: havetml
description: Publish long answers to HaveTML instead of dumping them in chat. Use whenever the reply would be a long markdown answer, a report, a plan, a spec, a design doc, a dashboard, a prototype, a diagram, a comparison table, a decision record, a checklist or a board — publish it as a HaveTML artifact or canvas and share the link. Also covers finding, reading and publishing skills on HaveTML, and updating an artifact's live state, versioning, visibility, comments, notes, decisions, canvases and webhooks over HaveTML's MCP server.
---

# HaveTML

HaveTML is where a long answer should live. An artifact is a real page at a
permanent URL: HTML and JSX render, markdown is typeset, YAML and JSON get a
structured viewer. It is versioned, people can comment on it in place, and it
can carry live state that both you and the reader change.

**Default behaviour: if the answer is longer than the chat window, publish it
and give back the link.** A 900-line markdown report in a chat transcript is
unreadable, unshareable, and gone on the next message. The same thing as an
artifact is a page somebody can send to a colleague.

Publish rather than paste when the reply is:

- a report, plan, spec, design doc, research summary, postmortem, runbook
- a dashboard, prototype, calculator, interactive explainer
- a diagram or a table that needs more than a few rows
- a decision record, a set of tasks, a board of anything

Keep it in chat when it is short, conversational, or a direct answer to a
direct question. Do not publish a two-sentence reply.

Say what you published and how open it is. **New artifacts are private**: the
link does nothing for anybody else until it is opened up. Never widen one on
your own initiative.

---

## Connect

MCP server URL: `https://havetml.com/api/mcp`

Setup is at [havetml.com/connect](https://havetml.com/connect), which mints the
token and prints the exact config for each client. In short:

- **Claude (web or desktop):** Settings → Connectors → Add custom connector.
  URL above, name it HaveTML, leave OAuth Client ID and Secret **empty** —
  Claude discovers HaveTML's sign-in on its own and sends you back to approve.
- **Claude Code:**
  `claude mcp add --transport http havetml https://havetml.com/api/mcp --header "Authorization: Bearer havetml_…"`
- **Cursor:** `~/.cursor/mcp.json` (or `.cursor/mcp.json` in one project) with
  `{"mcpServers":{"havetml":{"url":"https://havetml.com/api/mcp","headers":{"Authorization":"Bearer havetml_…"}}}}`
- **Codex / ChatGPT desktop:** `[mcp_servers.havetml]` in `~/.codex/config.toml`
  with `url` and `bearer_token_env_var = "HAVETML_TOKEN"`.
- **Anything else over Streamable HTTP:** the same URL and `Authorization`
  header. For stdio-only clients, bridge with `npx mcp-remote`.

Tokens come from Dashboard → API access and are shown once. MCP is free.

---

## Which thing to make

| You have | Make | Tool |
|---|---|---|
| A document, page or app somebody will read | an **artifact** | `upload_artifact` |
| Several artifacts and the relationships between them | a **canvas** | `create_canvas` |
| A question that needs resolving, with a record of the answer | a **decision** | `create_decision` |
| Standing context about what an artifact is | a **note** | `add_note` |
| A remark in a conversation about an artifact | a **comment** | `add_comment` |
| New data for an artifact that already exists | a **state update** | `update_artifact_json` |
| Instructions you want an agent to load later | a **skill** | `upload_artifact`, tagged `skill` |

The two pairs people confuse:

- **Note vs comment.** A note is the owner's standing explanation, shown in the
  artifact's sidebar — "this is the Q3 model, the revenue line is a placeholder".
  One document per artifact, owner-only, nobody is notified. A comment is part
  of a conversation, anyone with access can leave one, and it can be pinned to a
  specific element on the page.
- **New version vs state update.** A new version is new *content*: the markup
  changed. A state update is new *data* behind unchanged markup — a card moved
  column, a box got ticked. Re-uploading to change data throws away whatever a
  human changed in the meantime and fills the history with noise.

---

## Artifacts

```
upload_artifact({
  filename: "q3-review.html",   // .html .md .yaml .json .jsx (.tsx reads as jsx)
  content: "<!doctype html>…",
  slug: "Hsm44Ctk7V",           // optional; pass it to version that artifact
  title: "Q3 review",           // optional, defaults to the filename
  project: "planning",          // optional, see list_projects
  json: { filters: {} },        // optional initial state
  visibility: "unlisted"        // optional; private unless you say otherwise
})
```

Returns `url`, `slug`, `version`, `updated_existing` and the `visibility` it
landed on. 100 MB on Free, 2 GB on Pro. This MCP transport runs on Vercel and
rejects request bodies over 4.5 MB. For anything larger:

```
prepare_artifact_upload({ filename: "report.html", byte_size: 12_000_000 })
→ HTTP PUT the raw file bytes to upload_url (do not put them in a tool call)
→ confirm_artifact_upload({ upload_id })
```

**Versioning.** To update an artifact that already exists, pass its `slug`
(the part after `/f/` in the URL, or what this tool and `list_artifacts`
return). That writes a new version of exactly that artifact — same URL, old
versions still readable — even if the title, filename or project differ.
`upload_version({ slug, filename, content })` is the same call with slug
required. A missing slug or no edit permission is an error, not a new
artifact. Owners and invited editors may version; viewers may not.

Without a slug, re-uploading with the same title (or filename) into the same
project still versions in place; title matching is case- and
whitespace-insensitive. A different title, a rename, a missing or different
project, or an artifact that was shared with you will otherwise mint a new
artifact — pass `slug` whenever you have one. A version upload leaves
title, project and visibility alone unless the call names one.

**Reading.** `get_artifact({ slug })` returns the JSON state, the comments, the
annotations and the metadata — everything about the artifact except the document
itself. For the document, `get_artifact_content({ slug })` returns the source:
the HTML, Markdown or SVG the page is built from, for the current version or for
an earlier one with `version`. Read it before editing an artifact you did not
write, and to answer questions about what an artifact says.

Both read what you could read signed in as yourself: your own artifacts, ones
shared with you, ones shared with a circle you are in, and any public or
unlisted artifact whose slug you have. An encrypted artifact returns no content
— HaveTML holds no key for it.

When only the data moved, still update the state rather than re-uploading: a
state write cuts no version and stamps on nothing a reader set.

`list_artifacts({ project?, folder?, category? })` lists what you have;
`category: "skill"` narrows it to your skills, including private and unlisted
ones. `create_project({ name, description })` makes a shareable workspace;
`list_projects()` shows them.

**Deleting.** `delete_artifact({ slug })` soft-deletes an artifact you own: the
link stops working for everyone, the row stays in the database, and a second
call is not found. Only the owner can do this — editors cannot. Confirm with
the person before you call it.

---

## Folders

```
create_folder({ project: "planning", name: "Specs/API", create_missing: true })
list_folders({ project: "planning" })           // each with its full path
move_artifact({ slug, folder_path: "Specs/API" })      // or folder_id, or null
rename_folder({ folder_id, name })   move_folder({ folder_id, parent_folder_id })
delete_folder({ folder_id })
```

A project is the shareable top level; folders are organisation inside it. They
nest to 10 levels, and a path works in one call — there is no tree to walk.
`upload_artifact` and `create_canvas` take `folder_path` too, so a new artifact
can land in place.

**A folder is not a permission.** Moving an artifact never changes who can see
it; `set_artifact_visibility` is the only thing that does. A private artifact in
a shared folder stays private. What a folder *can* carry is a default, which
applies to what is created in it afterwards and never retroactively.

Deleting a folder keeps everything in it: the artifacts and any folders under it
move up one level, and the reply says how many did. There is no call that
deletes a folder and its contents together.

---

## Skills

A skill is a SKILL.md published as an artifact: front matter that says when to
use it, then the instructions. Installed into an agent's skills folder, it gets
loaded whenever its description matches the task — this file is one.

**Finding one.** `search_skills({ query?, limit? })` searches public skills by
what they do. Omit the query to browse the newest.

```
search_skills({ query: "review a pull request" })
list_artifacts({ category: "skill" })   // your own, including private ones
```

`search_skills` sees public skills only, anyone's. `list_artifacts` with
`category: "skill"` sees yours at any visibility. Neither returns somebody
else's private or unlisted skill.

**Read it before installing it.** The result carries a `source_url` that serves
the markdown verbatim; `get_artifact_content({ slug })` reads it too. A skill is
instructions for the agent that loads it, not a document, so an unread one is an
unread change to how you behave. The artifact page has the install command for
each tool.

**Publishing one.** Upload the SKILL.md with `upload_artifact` as normal, then
tag it `skill` from the artifact's settings in the dashboard — categories are the
owner's to set, and this transport has no call that sets them. It has to be
public for anyone to install it.

Front matter needs `name`, `description` and `when_to_use`; `version` and
`license` are optional. The `name` is the directory it installs into, so it has
to be lowercase letters, digits, dashes or underscores — a skill with no usable
name gets no install command, because the path would be one nobody's agent looks
in. HaveTML checks all of this when you tag it and says what is missing.

Skills tagged this way appear under **Skills** on Explore once they are public.

---

## Live state

An artifact can carry a JSON document alongside its content. The page is the
view, the state is the model. This is what makes a kanban, a checklist, an RSVP
or a dashboard with filters work: a reader changes something, it persists, and
you can read it back.

**From inside the artifact** (same-window postMessage; the page runs in a
sandboxed iframe, so never use `parent.postMessage` or raw `localStorage`):

```js
window.postMessage({ source: 'havetml', type: 'json.get', id: crypto.randomUUID() }, '*');
window.postMessage({ source: 'havetml', type: 'json.merge', id: crypto.randomUUID(),
                     patch: { done: ['card-3'] } }, '*');

window.addEventListener('message', (e) => {
  if (e.data.source === 'havetml' && e.data.type === 'json.result') {
    render(e.data.json);
  }
});
```

**From here:**

```
update_artifact_json({ slug: "q3review01", json: { done: ["card-3"] } })        // merge
update_artifact_json({ slug: "q3review01", json: { … }, mode: "replace" })      // overwrite
```

This is the right tool for kanban, checklist and dashboard state. It changes no
content, cuts no version and moves no visibility. Owners and editors only.

`merge` (the default) is **shallow**: a top-level key you send replaces that key
outright, and a key you leave out survives. To change one card inside
`{"columns": {…}}` you send the whole `columns` object. Read first with
`get_artifact` when you are not certain what is there.

State is capped at 50 MB per artifact. For a canvas, use `get_canvas` and
`update_canvas` — a board keeps its document in the same field, and a generic
merge would flatten it.

---

## Visibility

Four levels, and private is the default for everything you create:

- `private` — the owner and people they invited. The link does nothing for
  anyone else.
- `unlisted` — anyone with the link.
- `public` — the link, plus Explore and the owner's profile.
- `circle` — the owner's circle. Team plan only.

```
set_artifact_visibility({ slug: "q3review01", visibility: "unlisted" })
set_project_default_visibility({ project: "planning", visibility: "unlisted" })
```

`set_artifact_visibility` is owner-only, one artifact per call, and never
touches content. Two rules can refuse it: an artifact carrying a password or a
link expiry cannot become public until those are cleared, and an encrypted
artifact can never be public. The refusal says which.

`set_project_default_visibility` applies to **new** artifacts filed into that
project. Nothing already in it moves.

Tell the user what level a thing is on when you hand them a link. An agent that
calls a private URL a "share link" is wrong in the way that wastes someone's
afternoon.

**A readable URL.** A public artifact can carry a second, readable path, so it
reads `/f/q3-roadmap` instead of `/f/8eaBbGnVaN`:

```
set_artifact_custom_slug({ slug: "q3review01", custom_slug: "q3-roadmap" })
set_artifact_custom_slug({ slug: "q3review01", custom_slug: "" })   // release it
```

Both paths open the same artifact. The slug it was created with is its identity
and that URL works forever — address the artifact by it in every other call, and
keep using it anywhere a link was already shared. The readable name is a label:
it can change, and the old one is then free for somebody else.

The artifact has to be public first. A readable path only resolves for published
artifacts, because a name a person could guess would undo the unguessable link
that is an unlisted artifact's only protection. Narrow a public artifact later
and its readable name is parked — it stops resolving until the artifact is public
again, and nobody else can claim it meanwhile. Owner-only, one artifact per call,
and it never touches content or versions.

**Encrypted artifacts.** `create_encrypted_artifact` takes an envelope that was
already encrypted on the machine you are running on. It has no parameter for
file contents, a title or a key, because HaveTML is a remote server and anything
it encrypted for you would not be zero knowledge. Produce the envelope with the
local helper (`node cli/havetml-encrypt.mjs encrypt ./report.html`), then append
the key fragment it prints to the base URL this returns. If you cannot run shell
commands, say so and point the user at the Encrypted file option on the
dashboard — do not offer a plain upload and call it encrypted.

---

## Comments and notes

```
add_comment({ slug, body, anchor?, parent_id?, version?, attachments? })
list_comments({ slug })
get_comment_attachment({ slug, id })
```

`anchor` pins the comment to a place on the rendered page; `parent_id` makes it
a reply. `attachments` is an array of `{ name, mime?, content_base64 }` —
images, PDFs and text files, up to four, 4 MB each. `list_comments` returns
each file's name, mime, size and URL; `get_comment_attachment` reads the
bytes. Commenting requires an account. A private artifact's attachments stay
private.

```
list_notes({ slug })                  // → notes_md, can_edit, max_chars
add_note({ slug, body })              // appends a block, keeps what is there
update_notes({ slug, body })          // replaces everything; "" clears it
```

Notes are the Notes tab in the artifact's sidebar: one markdown document, up to
20,000 characters, visible to everyone who can open the artifact and writable
only by its owner. Editing access covers versions, not notes — an editor who
tries is told to leave a comment instead.

Write a note when you publish something non-obvious. "Figures are from the
August export; the Q4 column is modelled, not actual" belongs beside the
artifact, not in a chat message nobody will scroll back to.

---

## Decisions

A decision is a question recorded on an artifact, and then the answer, kept
permanently.

```
create_decision({ slug, title, context_md?,
                  selection_mode?, options?, allow_other?, due_at? })   // starts open
assign_decision({ decision_id, user_id? , email? })
decide_decision({ decision_id, choices?, other?, outcome?, note })
list_decisions({ slug })   get_decision({ decision_id })
update_decision({ decision_id, title?, context_md?,
                  selection_mode?, options?, allow_other?, due_at? })   // open ones only
delete_decision({ decision_id })                                       // open ones only
revoke_assignment({ assignee_id })
supersede_decision({ decision_id, title, outcome, rationale })
```

### The answer has a shape

A decision declares what kind of answer it wants, so the answer is a reference
to the question rather than a sentence that happens to resemble one:

| `selection_mode` | What it asks for                      | `options`  |
| ---------------- | ------------------------------------- | ---------- |
| `single`         | exactly one of the options            | required   |
| `multi`          | one or more of the options            | required   |
| `open`           | written-in prose                      | refused    |

`allow_other` (default true) lets the answer be something not on the list.
Omit `selection_mode` and it is inferred: `single` when you pass options,
`open` when you do not.

Answer with `choices` — 0-based indexes into `options`, or the option text
itself — plus `other` for an off-list answer, and `note` for why. `get_decision`
tells you the shape before you answer. A decided decision reports
`outcome_choices` and `outcome_other` alongside `outcome`, which stays readable
prose composed from the choice, so you can render it without understanding any
of this.

```
create_decision({ slug: "k2p9", title: "Which store for the queue?",
                  selection_mode: "single", options: ["Redis", "Postgres"] })
decide_decision({ decision_id, choices: ["Postgres"],
                  note: "One fewer thing to run." })
// outcome: "Postgres", outcome_choices: [1]
```

**Once decided, a decision is immutable.** The answer, the note, who decided
and when cannot be changed, and it cannot be deleted — nor can the question's
own shape, since `outcome_choices` indexes into `options`. The only way forward
is `supersede_decision`, which locks a replacement in front of it while the
original stays readable and pointing at its successor. That permanence is the
point: a decision record you can quietly edit is not a record.

The artifact's owner or an assignee may decide, and so may anyone who can edit
the artifact. Assigning emails the person the decision and grants them view
access to that one artifact, so you do not need to invite them separately.

---

## Canvases

A canvas is a board inside a project, and an ordinary artifact: it opens at
`/f/{slug}`, takes comments through `add_comment`, and moves with
`set_artifact_visibility` like anything else.

```
create_canvas({ project, title, visibility?, notes?, nodes?, edges? })
get_canvas({ slug })        // nodes, edges, notes, comments, visibility, board_rev
add_canvas_node({ slug, … })
add_canvas_edge({ slug, from, to, rel?, label? })
update_canvas({ slug, title?, notes?, nodes?, edges?, viewport?, base_rev? })
```

`add_canvas_node` and `add_canvas_edge` **append** and never disturb what
somebody else put on the board. They also never fail because the board moved
while you were working: each adds to the board as it stands at that moment, so
your card and whatever landed beside it both survive.

`update_canvas` **replaces**: passing `nodes` replaces every node, passing
`edges` replaces every edge. Read the board with `get_canvas` before calling it,
and send back everything that should survive. Metadata-only calls (`title`,
`notes`) leave the board alone.

### Pass `base_rev` when you rewrite a board

`get_canvas` hands back `board_rev`, the board's revision. Send it back as
`base_rev` on any `update_canvas` that carries `nodes` or `edges`, and your
rewrite only lands if nothing changed in between — a person dragging a card in a
browser tab, or another agent.

```
const board = get_canvas({ slug: "board-x7y3" })
update_canvas({ slug: "board-x7y3", nodes: [ … ], base_rev: board.board_rev })
```

If the board moved, nothing is written and the call fails with:

> This canvas changed since you read it. Read it again with get_canvas and
> resend what should survive.

Do not retry that blindly — resending the same nodes is exactly the overwrite
the revision exists to prevent. Read the board again, work out what your change
means on the board as it now is, and send that. When you are only adding, use
`add_canvas_node` / `add_canvas_edge` instead; they never collide. Omitting
`base_rev` does not turn the check off: the revision read at the start of the
same call is used instead.

### Node kinds

Pass `kind`, plus whatever that kind needs. A node with `ref` and no `kind` is
read as a card; a node with a label and nothing else is a sticky. Omit `x`/`y`
and the node is placed in a free slot.

| kind | what it is | needs |
|---|---|---|
| `artifact` | a card showing another artifact's own page | `ref` (slug) |
| `board` | a tile linking to another canvas | `ref` (slug) |
| `sticky` | a coloured note | `label`, optional `data.color` |
| `note` | a longer written card | `label` (markdown) |
| `todo` | a checklist | `data.items` (strings, or `{text, done}`), `data.title` |
| `link` | a URL card, unfurled | `data.url` |
| `image` | a picture on the board | `data.url` (https), optional `alt`, `caption` |
| `file` | a file card with an Open link | `data.url` (https), optional `name`, `caption` |
| `column` | a container; other nodes name it as `parent` | `data.title` |
| `table` | a grid | `data.rows`, optional `data.header` |
| `text` | free text on the board | `label`, optional `data.size` |
| `shape` | rect, ellipse or diamond | `data.shape`, optional `label` |
| `color` | a swatch | `data.hex`, optional `data.name` |

Images and files are added **by https URL** — there is no upload path from here.
Video, audio, freehand ink and drawn arrows are made by a person on the board.
A comment node goes through `add_comment` so it reaches notifications.

### Edges

`rel` says what the line means: `relatesTo`, `dependsOn`, `blocks`,
`references`, `specifies`, `tests`, `implements`, `bindsDataTo`, `evidences`,
`extractedFrom`, `branchOf`. The vocabulary is open — an unrecognised value is
kept and drawn as a plain line, and you are warned in case it was a typo.

Two are drawn distinctly, because they are the two that change what somebody
does next:

- **`dependsOn`** — dashed, arrow pointing at what has to happen first.
- **`blocks`** — heavier, ending in a stop bar at the work that is held up.

A board using either shows a legend explaining them, and every edge carries a
tooltip. Use them on a board of tasks instead of writing "blocked by" in a
sticky.

A board is capped at 50 MB. Cards store a slug, not a copy, so a board of fifty
cards is still kilobytes. Sharing a board does **not** share what its cards
point at — each artifact keeps its own visibility, so a visitor may see a card
and be refused at the link.

---

## Relations

```
add_relation({ from_slug, to_slug, rel: "supersedes", label?: "section 3" })
list_relations({ slug? , project? })            // neither means everything
remove_relation({ id })
```

The same `rel` vocabulary the canvas edges use, plus a free label of up to 120
characters for what the type does not say. A relation is metadata between two
artifacts and nothing more: it grants nobody access to either end.

It does not disclose, either. `list_relations` **omits the whole relation**
unless you can read both artifacts it joins — a link into somebody's private
library is not reported at all, not even as an unnamed row, because a row with
the title blanked out would still answer "is there something there".

Lines drawn between cards on a canvas appear here too, marked `source:
"canvas"` with the board's slug. Those belong to the board: `remove_relation`
refuses them, and the line comes off on the canvas instead.

---

## Collaborators, projects and events

```
invite_collaborator({ slug, email, role })      // "viewer" (default) or "editor"
list_collaborators({ slug })   revoke_collaborator({ slug, email })
invite_project_member({ project, email, role }) // editors can edit everything in it
list_project_members({ project })   revoke_project_member({ project, email })
```

```
list_events({ slug?, since?, limit? })          // json_updated, comment_added
register_webhook({ url, slug?, events? })       // POSTs, signed with HMAC-SHA256
list_webhooks()   delete_webhook({ id })
create_outgoing_webhook({ url, workspace, project?, events? })
list_outgoing_webhooks({ workspace? })   delete_outgoing_webhook({ id })
```

`list_events` is for polling: pass the previous response's `cursor` as `since`.
A webhook is the push version; its signing secret is returned **once**, and each
delivery carries `X-HaveTML-Signature` (HMAC-SHA256 of the raw body, hex).
Decision events (`decision_created`, `decision_assigned`, `decision_decided`,
`decision_superseded`) are opt-in.

`create_outgoing_webhook` is the workspace-scoped version: only a workspace
owner or admin can register an HTTPS URL (or a project inside that workspace)
for `comment.created`, `comment.replied`, `decision.created` and
`decision.answered`. Payloads never include an artifact the webhook's creator
could not open. The secret is shown once; list and delete never return it.

---

## Worked examples

**A long answer.** The user asks for a competitive analysis and the reply would
be two thousand words.

```
upload_artifact({ filename: "competitive-analysis.md", content: "# …",
                  title: "Competitive analysis", visibility: "unlisted" })
add_note({ slug: "cmp7k2x9qd",
           body: "Pricing is from each vendor's public page on 8 Oct. Seat counts are estimates." })
```

Reply: one paragraph of findings, the link, and the fact that it is
link-readable.

**A plan as a board.** "Turn this plan into something the team can work from."

```
upload_artifact({ filename: "migration-plan.md", content: "# …", project: "platform" })
create_canvas({ project: "platform", title: "Migration", nodes: [
  { id: "plan",   ref: "mig3k9xzqa", label: "The plan" },
  { id: "schema", kind: "sticky", label: "Freeze the schema" },
  { id: "backfill", kind: "sticky", label: "Backfill rows" },
  { id: "cutover", kind: "sticky", label: "Cut over" }
], edges: [
  { from: "backfill", to: "schema",  rel: "dependsOn" },
  { from: "cutover",  to: "backfill", rel: "dependsOn" },
  { from: "plan",     to: "cutover",  rel: "specifies" }
]})
create_decision({ slug: "mig3k9xzqa", title: "Cut over in one window or region by region?",
                  context_md: "One window is simpler to reason about. Region by region is reversible." })
```

**Moving a card.** The board's state changed; the page did not.

```
get_artifact({ slug: "kanban7x2q" })
update_artifact_json({ slug: "kanban7x2q",
                       json: { columns: { todo: ["c-2"], doing: ["c-7"], done: ["c-1","c-4"] } } })
```

Send the whole `columns` object: the merge is shallow.

**Recording an outcome.** The decision got made in a meeting.

```
decide_decision({ decision_id: "…", outcome: "Region by region",
                  rationale: "Reversible, and the EU region can go first while US traffic is low." })
```

It is locked now. If it changes later, `supersede_decision` — do not try to
edit it.

**A dashboard that keeps its state.** Publish the page with its initial state,
then update the numbers on a schedule without republishing.

```
upload_artifact({ filename: "ops.html", content: "<!doctype html>…",
                  json: { updated: "2026-10-08", queue: 412 } })
update_artifact_json({ slug: "opsx92kq1d", json: { queue: 389 } })
```

The page reads its state through `json.get` and redraws. No new version, and
nothing a reader set gets stamped on.

**An export that needs sign-off.** The user has HTML out of a site builder or a
design tool — several files, with the styling outside the markup — and a client
who has to look at it.

```
upload_artifact({ filename: "homepage.html", content: "<!doctype html>…",
                  title: "Homepage v1", visibility: "unlisted" })
get_artifact({ slug: "a1b2c3d4" })
add_comment({ slug: "a1b2c3d4", body: "Draft for review — the hero copy is still being written." })
```

Inline the stylesheet, scripts and images into the one file before uploading:
the artifact renders in a sandbox, so a remote stylesheet or an `http://` asset
reaches the reader as an unstyled or blank page. Read the artifact back before
handing over the link — uploads start private, and a link the client cannot
open looks like a broken link, not a permissions setting. Then say the level
out loud: anyone with this link can read it.

---

## Rules of thumb

- Publish long answers; keep short ones in chat.
- Private by default. Say what level a link is on. Do not widen without asking.
- Update state, do not re-upload, when only the data moved.
- Read before you replace: `get_canvas` before `update_canvas` (and send its
  `board_rev` back as `base_rev`), `get_artifact` before a `replace`-mode state
  write, `get_artifact_content` before editing a page you did not write.
- Notes for standing context, comments for conversation.
- A decided decision is permanent. Supersede it, never edit it.
