Kimo
Docs
v1.0
Changeloggetkimo.design
Docs
v1.0
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.

2 min read
·
Kimo 1.0 · format 1.0
On this page3 sections
  1. Targets
  2. Parameters
  3. Results

Targets

targetOutput
react-tailwind<Root>.tsx per exported frame, <Component>.tsx per component, tokens.css
html-cssindex.html, styles.css, tokens.css
tokens-dtcgtokens.json (W3C DTCG)
tokens-csstokens.css
tailwind-themetheme.css with a Tailwind @theme block (only available here, not in the dialog)
svgOne SVG per frame
pdfOne PDF, one page per frame
png<nodeId>.png per node
kimoThe nodes as a standalone .kimo file with the variables they use
react-tailwind
Output <Root>.tsx per exported frame, <Component>.tsx per component, tokens.css
html-css
Output index.html, styles.css, tokens.css
tokens-dtcg
Output tokens.json (W3C DTCG)
tokens-css
Output tokens.css
tailwind-theme
Output theme.css with a Tailwind @theme block (only available here, not in the dialog)
svg
Output One SVG per frame
pdf
Output One PDF, one page per frame
png
Output <nodeId>.png per node
kimo
Output The nodes as a standalone .kimo file with the variables they use

Parameters

ParameterMeaning
docIdThe open document
idsNodes to export, up to 200 (default: every top-level frame)
outDirAbsolute output folder. Required for png and kimo; without it, code, token, SVG and PDF targets return the files inline (PDF as base64)
scalepng pixel ratio, 0.1 to 4 (default 2)
overwriteReplace existing files with different contents
variablesVariables as CSS custom properties (default true)
componentsreact-tailwind: split instances into components (default true)
layerNamesKeep layer names as data attributes (default true for html-css, false for react-tailwind)
docId
Meaning The open document
ids
Meaning Nodes to export, up to 200 (default: every top-level frame)
outDir
Meaning Absolute output folder. Required for png and kimo; without it, code, token, SVG and PDF targets return the files inline (PDF as base64)
scale
Meaning png pixel ratio, 0.1 to 4 (default 2)
overwrite
Meaning Replace existing files with different contents
variables
Meaning Variables as CSS custom properties (default true)
components
Meaning react-tailwind: split instances into components (default true)
layerNames
Meaning 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.