All 20 tags
<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
| Attribute | Description |
|---|---|
type | Content type such as text, code, svg, markdown. |
Children
<title>— The artifact's title.<content>— The artifact payload.
Minimal example
<npl-artifact type="code">
<title>palindrome.py</title>
<content>def is_pal(s): return s == s[::-1]</content>
</npl-artifact>