All 20 tags

← NPL tag reference

<npl-artifact>

Structured output block with metadata: a titled, typed content payload such as code, a report, or a figure.

For outputs that need special handling or a specific rendering context. A type of svg routes the content through a sandboxed iframe; every other value (including unset) renders the content preformatted.

Attributes

AttributeDescription
typeContent type such as text, code, svg, markdown.

Children

  • <title> — The artifact's title.
  • <content> — The artifact payload.

Minimal example