Levni

v0.6.0
dev.levni/levni Checked 3 hours ago Published 2 days ago

Your 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.

ParameterTypeDescription
categorystringOnly one shelf of the library.
limitintegerMaximum results (default 40).
querystringOne 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).

ParameterTypeDescription
scene *objectA 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…
outstringFile path to write, relative to the server's working directory. Extension picks the format.
previewbooleanReturn 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.

ParameterTypeDescription
scene *objectA 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.

ParameterTypeDescription
out *stringFile path to write, relative to the server's working directory. Must end in .gif or .webp.
scene *objectA 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…
boilintegerHand-drawn shimmer: this many crayon textures take turns (0 = steady, 2..8). Makes GIFs about twice as large.
fpsintegerFrames per second (default 12).
framesintegerFrames in the loop (default 24, max 240). Each takes about as long as one render_scene.
previewbooleanReturn a strip of four frames as an image (default true).
widthintegerOutput 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.

ParameterTypeDescription
names *arrayProp 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.

ParameterTypeDescription
guidebooleanReturn the board format (docs/board.md) and do nothing else.
outstringPNG path to write, relative to the server's working directory.
previewbooleanReturn a 900 px preview image (default true).
specobjectBoard 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.

ParameterTypeDescription
guidebooleanReturn docs/poster.md and do nothing else.
out_dirstringFolder to write poster-NN-<template>.png and series.png, relative to the server's working directory.
previewbooleanReturn the contact sheet image (default true).
scenesbooleanAlso return each poster as scene JSON (to tweak and pass to render_scene).
specobject{ 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.

ParameterTypeDescription
columnsintegerFrames per row (default 3).
frames_dirstringFolder for shot-NN.png (full size) and shots.json.
guidebooleanReturn docs/storyboard.md and do nothing else.
outstringPNG path for the sheet, relative to the server's working directory.
previewbooleanReturn a 900 px preview image (default true).
specobject | arrayStoryboard 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…

ParameterTypeDescription
guidebooleanReturn docs/brandkit.md and do nothing else.
out_dirstringFolder to write the kit into, relative to the server's working directory.
previewbooleanReturn the kit's brand board image (default true when out_dir is set).
specobject{ brand: {...}, seed?, only?, posters? }
urlstringOptional 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.

ParameterTypeDescription
out_dir *stringFolder to write the plates into, relative to the server's working directory.
scene *objectA 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…
halftoneintegerScreen the tints into dots of this many px. Leave out to keep gray and let the printer screen.
platesintegerMost drums to use (default 4); extra inks fold into the nearest plate.
previewbooleanReturn sheet.png as an image (default true).
scalenumberPixels 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.

ParameterTypeDescription
fieldsobject{ 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.
namestringShot name. Leave out to get the list.
outstringFile to write: .gif, .webp, .mp4 (needs ffmpeg), .png (a still) or .json (the scene, to edit and pass to render_animation).
previewbooleanReturn a strip of four frames (default true).
widthintegerOutput 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.

ParameterTypeDescription
out *stringFile to write: .mp4, .gif or .webp, relative to the server's working directory.
reel *objectThe reel spec.
previewbooleanReturn 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.

ParameterTypeDescription
out *stringFile to write: .gif, .webp or .mp4 (needs ffmpeg), relative to the server's working directory.
brandobject{ name, tagline?, inks?: ["#RRGGBB"], mark?: a Folio drawing, url?, words? } when there is no site or to correct what it says.
formatstringsquare (default), story, youtube, cover, og…
lookstringAn illustration look: halftone, one-line, marker, cutout, airy, stamp or mono.
urlstringA website the user named: its name, line and colours are read from that one page.
widthintegerPixel 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`.

ParameterTypeDescription
query *stringWhat you need, e.g. "coffee", "headline font", "dots pattern", "night palette", "float". English or Turkish.
colorsarrayYour colours as hex, e.g. ["#E8522F", "#1E1466"]: they fill blue, coral, mustard and green in that order.
kindsarrayOnly these kinds.
limitintegerMaximum results (default 8, at most 24).
previewbooleanReturn a contact sheet of the results (default true).