wiri
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| WIRI_WORKSPACE | No | Directory for storing documents and exports. If not set, defaults to current directory. | . |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Wiri is a semantic wireframing server. Create or open a document, create screens, and call get_tree before editing a screen you have not read. Prefer batch for related edits. Render for visual feedback and lint for deterministic feedback. Node ids are unique within a screen and immutable; navigation uses a to prop containing a screen name.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_documentsB | List workspace documents in stable name order; the active document is marked. Input: {}. Example: {}. |
| create_documentB | Create and activate an empty document. name must match [a-z][a-z0-9_]{0,31}. Example: {"name":"checkout_redesign"}. |
| open_documentB | Open an existing workspace document and make it active. Example: {"name":"checkout_redesign"}. |
| list_screensB | List active-document screens with viewport, node count, and inbound-link count. Input: {}. Example: {}. |
| create_screenC | Create a screen. viewport is mobile/tablet/desktop or {width,height}. Example: {"name":"checkout","viewport":"mobile"}. |
| duplicate_screenB | Deep-copy a screen while preserving node ids. Example: {"source":"checkout","new_name":"checkout_error"}. |
| delete_screenB | Delete a screen; incoming links remain and lint as dead links. Example: {"name":"old_checkout"}. |
| get_treeB | Read a compact scene tree before editing. Lines are |
| addA | Add one semantic node. parent is a container id, root, or overlay. Props: every node accepts w=hug|fill|integer and h=hug|fill|integer. Containers are stack,layer,card,navbar,sidebar,modal,drawer,list,list_item,tabs and accept dir=v|h, gap, pad, align=start|center|end, justify=start|center|end|between, fill=none|faint|light|dark. A layer overlaps children; its direct children may use anchor=stretch|top_start|top|top_end|start|center|end|bottom_start|bottom|bottom_end. A drawer{title,side=left|right|bottom,open} is layer-only; list accepts only list_item children; tabs accept container panels; modal is overlay-only; sidebar is desktop-only. navbar{title,back}; modal{title,dismiss}; list{dividers}; list_item{title,subtitle,leading,trailing,to}; tabs{active}; text{text,variant=h1|h2|h3|body|caption|label,muted,align,to}; button{text,label,variant=primary|secondary|ghost|danger|fab,icon,pressed,to}; input{label,placeholder,value,kind=text|email|password|number|search,error}; textarea{label,placeholder,rows}; select/radio_group{label,options,value}; checkbox{label,checked}; toggle{label,on}; image{label,aspect=16:9|1:1|4:3}; icon{icon,size,to}; avatar{label,size}; badge{text,tone=neutral|success|warn|danger}; table{columns=string array,rows=0..100 integer placeholder-row count}. Icon names: menu,close,search,back,chevron_right,chevron_down,plus,minus,check,user,settings,home,bell,heart,star,trash,edit,filter,calendar,upload,download,more,cart,info,warning,compass,locate,play,stop. Example: {"screen":"checkout","parent":"root","type":"button","name":"pay_btn","props":{"text":"Pay","w":"fill"}}. |
| updateA | Merge a prop patch; null deletes a key and annotation sets/removes the node annotation. Props: every node accepts w=hug|fill|integer and h=hug|fill|integer. Containers are stack,layer,card,navbar,sidebar,modal,drawer,list,list_item,tabs and accept dir=v|h, gap, pad, align=start|center|end, justify=start|center|end|between, fill=none|faint|light|dark. A layer overlaps children; its direct children may use anchor=stretch|top_start|top|top_end|start|center|end|bottom_start|bottom|bottom_end. A drawer{title,side=left|right|bottom,open} is layer-only; list accepts only list_item children; tabs accept container panels; modal is overlay-only; sidebar is desktop-only. navbar{title,back}; modal{title,dismiss}; list{dividers}; list_item{title,subtitle,leading,trailing,to}; tabs{active}; text{text,variant=h1|h2|h3|body|caption|label,muted,align,to}; button{text,label,variant=primary|secondary|ghost|danger|fab,icon,pressed,to}; input{label,placeholder,value,kind=text|email|password|number|search,error}; textarea{label,placeholder,rows}; select/radio_group{label,options,value}; checkbox{label,checked}; toggle{label,on}; image{label,aspect=16:9|1:1|4:3}; icon{icon,size,to}; avatar{label,size}; badge{text,tone=neutral|success|warn|danger}; table{columns=string array,rows=0..100 integer placeholder-row count}. Icon names: menu,close,search,back,chevron_right,chevron_down,plus,minus,check,user,settings,home,bell,heart,star,trash,edit,filter,calendar,upload,download,more,cart,info,warning,compass,locate,play,stop. Example: {"screen":"checkout","id":"pay_btn","props":{"variant":"primary","annotation":"Disabled until valid"}}. |
| moveA | Reparent or reorder a node; index is zero-based and defaults to append. Example: {"screen":"checkout","id":"pay_btn","parent":"form","index":2}. |
| removeB | Remove a node and its subtree. root cannot be removed. Example: {"screen":"checkout","id":"old_note"}. |
| batchA | Atomically apply 1..100 add/update/move/remove ops. Later id/parent fields may use $N for a preceding add operation index. Props: every node accepts w=hug|fill|integer and h=hug|fill|integer. Containers are stack,layer,card,navbar,sidebar,modal,drawer,list,list_item,tabs and accept dir=v|h, gap, pad, align=start|center|end, justify=start|center|end|between, fill=none|faint|light|dark. A layer overlaps children; its direct children may use anchor=stretch|top_start|top|top_end|start|center|end|bottom_start|bottom|bottom_end. A drawer{title,side=left|right|bottom,open} is layer-only; list accepts only list_item children; tabs accept container panels; modal is overlay-only; sidebar is desktop-only. navbar{title,back}; modal{title,dismiss}; list{dividers}; list_item{title,subtitle,leading,trailing,to}; tabs{active}; text{text,variant=h1|h2|h3|body|caption|label,muted,align,to}; button{text,label,variant=primary|secondary|ghost|danger|fab,icon,pressed,to}; input{label,placeholder,value,kind=text|email|password|number|search,error}; textarea{label,placeholder,rows}; select/radio_group{label,options,value}; checkbox{label,checked}; toggle{label,on}; image{label,aspect=16:9|1:1|4:3}; icon{icon,size,to}; avatar{label,size}; badge{text,tone=neutral|success|warn|danger}; table{columns=string array,rows=0..100 integer placeholder-row count}. Icon names: menu,close,search,back,chevron_right,chevron_down,plus,minus,check,user,settings,home,bell,heart,star,trash,edit,filter,calendar,upload,download,more,cart,info,warning,compass,locate,play,stop. Example: {"screen":"checkout","ops":[{"op":"add","parent":"root","type":"stack","name":"form"},{"op":"add","parent":"$0","type":"input","name":"email","props":{"label":"Email"}}]}. |
| renderC | Render a deterministic PNG. mode is clean, ids, or notes; scale is 1 or 2. Example: {"screen":"checkout","mode":"ids","scale":1}. |
| lintA | Run all deterministic layout, accessibility, label, link, and overlay rules—including touch target, small text, and clipped text checks—and return findings plus a marked PNG. Example: {"screen":"checkout"}. |
| checkpointB | Persist a named snapshot of one screen (20 retained per screen). Example: {"screen":"checkout","label":"before_form_rework"}. |
| diffB | Compare a checkpoint with another checkpoint or current (default). Example: {"screen":"checkout","from":"before_form_rework","to":"current"}. |
| undoA | Undo the last n session mutations on a screen; a batch is one mutation. Example: {"screen":"checkout","n":1}. |
| redoB | Redo the last n undone session mutations on a screen. Example: {"screen":"checkout","n":1}. |
| linksB | Return all to-link edges and screens with no inbound links in stable order. Input: {}. Example: {}. |
| render_flowC | Render the active document flow graph as a deterministic PNG. Input: {}. Example: {}. |
| exportA | Export one screen or all screens to workspace/exports. format is png, svg, or html. Example: {"format":"html"}. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 22 tools
Most tools target clearly distinct resources or actions: document lifecycle, screen lifecycle, node editing, rendering, history, and linting are well separated. There is some overlap between render/render_flow/export/lint and between individual node operations and batch, but the descriptions make the intended boundaries understandable.
Several tools follow a clear verb_noun pattern (list_documents, create_screen, get_tree, render_flow), but many others are bare verbs or nouns (add, update, move, remove, batch, diff, undo, redo, links, checkpoint). The set remains readable, but the convention is mixed rather than predictable.
At 22 tools the surface is slightly heavy, but the domain genuinely spans documents, screens, scene-tree editing, rendering, export, linting, and history. Each tool appears to earn its place rather than being redundant filler.
Core editing workflows are covered, including document/screen management, node CRUD, batch edits, rendering, export, linting, and undo/redo. However, there are notable gaps: no delete or rename for documents, no rename/update for screens, and checkpoints can be created but not listed or restored.