Export
Export for agents
Agents export through the kimo_export MCP tool: the same deterministic exporters as the Export dialog, callable from a coding agent connected over MCP (see Agents & MCP) or from the built-in agent.
On this page3 sections
Targets
target | Output |
|---|---|
react-tailwind | <Root>.tsx per exported frame, <Component>.tsx per component, tokens.css |
html-css | index.html, styles.css, tokens.css |
tokens-dtcg | tokens.json (W3C DTCG) |
tokens-css | tokens.css |
tailwind-theme | theme.css with a Tailwind @theme block (only available here, not in the dialog) |
svg | One SVG per frame |
pdf | One PDF, one page per frame |
png | <nodeId>.png per node |
kimo | The nodes as a standalone .kimo file with the variables they use |
react-tailwindOutput
<Root>.tsx per exported frame, <Component>.tsx per component, tokens.csshtml-cssOutput
index.html, styles.css, tokens.csstokens-dtcgOutput
tokens.json (W3C DTCG)tokens-cssOutput
tokens.csstailwind-themeOutput
theme.css with a Tailwind @theme block (only available here, not in the dialog)svgOutput One SVG per frame
pdfOutput One PDF, one page per frame
pngOutput
<nodeId>.png per nodekimoOutput The nodes as a standalone
.kimo file with the variables they useParameters
| Parameter | Meaning |
|---|---|
docId | The open document |
ids | Nodes to export, up to 200 (default: every top-level frame) |
outDir | Absolute output folder. Required for png and kimo; without it, code, token, SVG and PDF targets return the files inline (PDF as base64) |
scale | png pixel ratio, 0.1 to 4 (default 2) |
overwrite | Replace existing files with different contents |
variables | Variables as CSS custom properties (default true) |
components | react-tailwind: split instances into components (default true) |
layerNames | Keep layer names as data attributes (default true for html-css, false for react-tailwind) |
docIdMeaning The open document
idsMeaning Nodes to export, up to 200 (default: every top-level frame)
outDirMeaning Absolute output folder. Required for
png and kimo; without it, code, token, SVG and PDF targets return the files inline (PDF as base64)scaleMeaning
png pixel ratio, 0.1 to 4 (default 2)overwriteMeaning Replace existing files with different contents
variablesMeaning Variables as CSS custom properties (default true)
componentsMeaning
react-tailwind: split instances into components (default true)layerNamesMeaning Keep layer names as data attributes (default true for
html-css, false for react-tailwind)Results
The result lists every file with its path, size and SHA-256, and for code targets the issues: what the exporter approximated or dropped, with the node it concerns.
Writes are all or nothing. If any file already exists with different contents, the call fails with FILE_EXISTS and writes nothing, unless overwrite: true. Files that already have the exact contents are reported unchanged and not rewritten.
For the full agent workflow (render, check, export), agents read guide/export with kimo_read_docs.