Levni
v0.6.0Your agent's design studio: illustrations, brand boards and posters from JSON.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
scene_guide
The Levni scene format: canvas, every element type and its fields, colours, style packs. Read it once before writing scenes.
list_props
Search the Levni Folio, a library of hand-inked drawings (props) that scenes place by name. Matches names, old names of renamed props, tags (English and Turkish) and variant notes. Returns name, variant count, tags and what each variant shows.
| Parameter | Type | Description |
|---|---|---|
category | string | Only one shelf of the library. |
limit | integer | Maximum results (default 40). |
query | string | One or more words, e.g. "cat", "money", "film camera". Empty lists everything. |
render_scene
Draw a scene. Returns the layout critic's notes (off-canvas elements, accidental crops, lopsided weight, missing focal point) and a small preview image. With `out`, also writes the full-size file (.png, .webp under a size budget, or .svg).
| Parameter | Type | Description |
|---|---|---|
scene * | object | A Levni scene: { seed?, style?, background?, elements: [...] }. Canvas is 1200 x 673. Besides drawings (props) it makes brand assets: dither fields, grainy mesh gradients, ASCII/glyph fills, seals and… |
out | string | File path to write, relative to the server's working directory. Extension picks the format. |
preview | boolean | Return a 560 px preview image (default true). Set false for agents that cannot see images. |
critique_scene
Only the layout critic's notes for a scene, without writing or returning an image. Fast check while iterating.
| Parameter | Type | Description |
|---|---|---|
scene * | object | A Levni scene: { seed?, style?, background?, elements: [...] }. Canvas is 1200 x 673. Besides drawings (props) it makes brand assets: dither fields, grainy mesh gradients, ASCII/glyph fills, seals and… |
render_animation
Draw a scene as a short loop and write it as an animated .gif or .webp. The scene's `t` runs 0..1 over the frames: clouds with `drift` move, trees sway, flags wave, confetti falls, flowfield and halftone shift, meshgrad blobs breathe, soft3d / extrude3d with `spin` turn, glyphfill globes rotate. Frame N+1 after the last is the first, so it loops. Returns the critic's notes (it says so when nothing in the scene moves) and a strip of four frames to look at. GIF plays in GitHub READMEs, chat and email; WebP is several times smaller for web pages.
| Parameter | Type | Description |
|---|---|---|
out * | string | File path to write, relative to the server's working directory. Must end in .gif or .webp. |
scene * | object | A Levni scene: { seed?, style?, background?, elements: [...] }. Canvas is 1200 x 673. Besides drawings (props) it makes brand assets: dither fields, grainy mesh gradients, ASCII/glyph fills, seals and… |
boil | integer | Hand-drawn shimmer: this many crayon textures take turns (0 = steady, 2..8). Makes GIFs about twice as large. |
fps | integer | Frames per second (default 12). |
frames | integer | Frames in the loop (default 24, max 240). Each takes about as long as one render_scene. |
preview | boolean | Return a strip of four frames as an image (default true). |
width | integer | Output width in px (default: the canvas width). 800 is a good README size. |
show_props
Contact image of up to 12 props with every variant numbered, to choose a drawing by eye.
| Parameter | Type | Description |
|---|---|---|
names * | array | Prop names from list_props. |
render_board
Make a brand board: one image with a mark, wordmark, palette, web page, social card, tote, sticker, pattern and business card. Shortest form: { "brand": { "name", "tagline", "mark": <prop name from list_props>, "inks": ["#RRGGBB", ...] } }. Or place tiles yourself: { "grid": {cols, rows}, "tiles": [{ "at": [col, row, colspan, rowspan], "scene": {...} | "palette" | "type", "mockup": "browser"|"card"|"tote"|"phone" }] }. Set guide: true to get the full board format instead of rendering.
| Parameter | Type | Description |
|---|---|---|
guide | boolean | Return the board format (docs/board.md) and do nothing else. |
out | string | PNG path to write, relative to the server's working directory. |
preview | boolean | Return a 900 px preview image (default true). |
spec | object | Board spec, or { brand: {...} }. |
render_poster
Make a series of branding posters (portrait, 1200 x 1600) from one brand: { "brand": { "name", "tagline", "mark": <prop name>, "inks": ["#RRGGBB", ...], "words": ["SHIP", ...] }, "only"?: [template names], "count"? }. Templates: split, map, bauhaus, echo, camo, vertical, summit, launch. Returns a contact sheet preview and, with out_dir, writes every poster. Set scenes: true to get each poster as an editable scene JSON for render_scene; guide: true for the format.
| Parameter | Type | Description |
|---|---|---|
guide | boolean | Return docs/poster.md and do nothing else. |
out_dir | string | Folder to write poster-NN-<template>.png and series.png, relative to the server's working directory. |
preview | boolean | Return the contact sheet image (default true). |
scenes | boolean | Also return each poster as scene JSON (to tweak and pass to render_scene). |
spec | object | { brand: {...}, only?, count? } |
render_storyboard
Draw a storyboard before making a video: one contact sheet of numbered frames (id/title, duration, running timecode, note). Spec: { "title"?, "brand"?: {name, inks, mark}, "format"?: "youtube"|"hd"|"story"|"square"|[w,h], "shots": [{ "id"?, "title"?, "note"?, "duration"? (s) | "frames"?, "prop"? | "props"?, "camera"?: "wide"|"close"|"left"|"right", "background"?, "text"?, "scene"? }] }. A bare array of { id, desc, frames } also works. Unknown props give placeholders plus warnings. Set guide: true for the format.
| Parameter | Type | Description |
|---|---|---|
columns | integer | Frames per row (default 3). |
frames_dir | string | Folder for shot-NN.png (full size) and shots.json. |
guide | boolean | Return docs/storyboard.md and do nothing else. |
out | string | PNG path for the sheet, relative to the server's working directory. |
preview | boolean | Return a 900 px preview image (default true). |
spec | object | array | Storyboard spec or a bare shot list. |
render_brand_kit
Make a whole consistent brand kit from one brand: { "brand": { "name", "tagline"?, "mark"?: <prop name>, "inks"?: ["#RRGGBB", ...], "words"?: [...] }, "seed"?, "only"?: [asset names], "posters"?: 4 | 8 }. Writes mark.png/svg (transparent), favicons, palette, og, cover, social-square, story, readme-banner, board, posters/, loop.webp, brand.json, kit.json and index.html into out_dir, all with the same inks, mark and finish. Assets: mark, favicon, palette, og, cover, social-square, story, readme-banner, board, posters, loop. Pass url ONLY if the user gave a website: that single page is fetched to…
| Parameter | Type | Description |
|---|---|---|
guide | boolean | Return docs/brandkit.md and do nothing else. |
out_dir | string | Folder to write the kit into, relative to the server's working directory. |
preview | boolean | Return the kit's brand board image (default true when out_dir is set). |
spec | object | { brand: {...}, seed?, only?, posters? } |
url | string | Optional http(s) page the user named. Fetched once to read name, tagline and colours; never fetched unless given. |
render_print
Split a scene into riso plates for a real print run: one grayscale PNG per ink (black = full ink), printed lightest first with the key line last, plus proof.png (the plates multiplied back on the paper), sheet.png (each plate in its ink beside the proof) and print.json (inks, hex, coverage, order, dpi at A4 and A3). Tints become lower density of their ink; two inks over each other are split onto both plates. Motion is ignored: the finished still is printed.
| Parameter | Type | Description |
|---|---|---|
out_dir * | string | Folder to write the plates into, relative to the server's working directory. |
scene * | object | A Levni scene: { seed?, style?, background?, elements: [...] }. Canvas is 1200 x 673. Besides drawings (props) it makes brand assets: dither fields, grainy mesh gradients, ASCII/glyph fills, seals and… |
halftone | integer | Screen the tints into dots of this many px. Leave out to keep gray and let the printer screen. |
plates | integer | Most drums to use (default 4); extra inks fold into the nearest plate. |
preview | boolean | Return sheet.png as an image (default true). |
scale | number | Pixels per canvas unit (default 3: a cover becomes 3600 x 2019, about 300 dpi at A4 landscape). |
render_shot
Make a ready-made motion shot with your words, drawing and inks, and write it as a loop (.gif, .webp, .mp4) or a still (.png) or its scene (.json). Call with no name for the list of shots. Shots: typed-headline, headline-slide, kicker-wipe, quote, big-number, list-stagger, cta-pop, logo-sting, mark-float, mark-draw, mark-print, seal-spin, error-wiggle, confetti-launch, rain, snow, night, sunburst, mesh-breathe, ascii-globe, turntable, camera-push, bars-grow, palette-rise, print-run. Every shot lays itself out for cover, og, square, story, youtube, hd and readme.
| Parameter | Type | Description |
|---|---|---|
fields | object | { title?, subtitle?, kicker?, mark? (Folio name from list_props), inks? (up to five hex), items? [strings], values? [numbers], cta?, format?, seed? }. Left-out fields take the shot's own sample. |
name | string | Shot name. Leave out to get the list. |
out | string | File to write: .gif, .webp, .mp4 (needs ffmpeg), .png (a still) or .json (the scene, to edit and pass to render_animation). |
preview | boolean | Return a strip of four frames (default true). |
width | integer | Output width in px for loops (default: the canvas width). |
render_reel
Join shots or scenes into one short video or loop with transitions. reel: { format?, fps? (24), width?, inks?, transition? (cut, fade, wipe, slide, push, iris; default fade), transitionSeconds? (0.4), clips: [{ shot, fields?, seconds?, transition? } | { scene, seconds? }] }. Each clip plays its own motion once over its seconds. Writes .mp4 (needs ffmpeg), .gif or .webp and returns one frame from each clip.
| Parameter | Type | Description |
|---|---|---|
out * | string | File to write: .mp4, .gif or .webp, relative to the server's working directory. |
reel * | object | The reel spec. |
preview | boolean | Return a strip of frames (default true). |
render_promo
A short moving promo (about 10 s) from a website or a brand: the mark and name, the line typed out, the brand inks, and where to go, as one GIF, WebP or MP4 in the brand's colours. Give `url` (fetched once, that page only) or `brand` ({ name, tagline?, inks?, mark?, url? }). Drawn locally, no image model.
| Parameter | Type | Description |
|---|---|---|
out * | string | File to write: .gif, .webp or .mp4 (needs ffmpeg), relative to the server's working directory. |
brand | object | { name, tagline?, inks?: ["#RRGGBB"], mark?: a Folio drawing, url?, words? } when there is no site or to correct what it says. |
format | string | square (default), story, youtube, cover, og… |
look | string | An illustration look: halftone, one-line, marker, cutout, airy, stamp or mono. |
url | string | A website the user named: its name, line and colours are read from that one page. |
width | integer | Pixel width (default 540 for GIF, full size otherwise). |
route_design
Design Router: ask for a design job or a thing. It answers with the Levni tool for the job (site page, CLI command or MCP tool), the drawings, icons, fonts, palettes, patterns, motion and shots to use, and, when Levni does not do it, says so and names open tools that do (from Levni-Dev's lists). Each result has its licence, its credit and a snippet to paste into a scene. Words like "font", "palette", "pattern", "motion", "icon" or "shot" narrow the kind. With `colors`, the preview sheet is drawn in your colours and you get the ink map to put in the scene's `style`.
| Parameter | Type | Description |
|---|---|---|
query * | string | What you need, e.g. "coffee", "headline font", "dots pattern", "night palette", "float". English or Turkish. |
colors | array | Your colours as hex, e.g. ["#E8522F", "#1E1466"]: they fill blue, coral, mustard and green in that order. |
kinds | array | Only these kinds. |
limit | integer | Maximum results (default 8, at most 24). |
preview | boolean | Return a contact sheet of the results (default true). |