fui-studio-mcp
v0.1.4FUI Studio for AI assistants: build animated HUD graphics over MCP and watch them appear in FUI Studio.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
new_project
Start a fresh project, replacing whatever is open.
| Parameter | Type | Description |
|---|---|---|
height | integer | |
name | string | |
seed | string | number | |
width | integer |
open_project
Open a .tui project file (.fui.json from earlier versions reads the same). A relative path or bare name opens from the projects folder when the server has one. Open again to pick up changes saved in the studio.
| Parameter | Type | Description |
|---|---|---|
path * | string |
save_project
Save the project. Without a path, writes back to where it was opened from. A relative path or bare name (".tui" is added) saves into the projects folder, where an open studio shows it at once. Writing back over a file someone saved since you opened it is refused unless overwrite is true.
| Parameter | Type | Description |
|---|---|---|
overwrite | boolean | |
path | string |
list_projects
The projects in the projects folder, loose and one folder deep, newest save first — what the studio’s Open dialog shows.
get_project
Summary of the open project: counts, canvas, issues, which nodes are time-dependent.
list_node_types
The node library. Every param is wireable as an input socket unless marked otherwise; connect() takes a param key as toPort exactly like a named input.
| Parameter | Type | Description |
|---|---|---|
category | string |
describe_node
One node type in full: what every param means, its unit, range, group and choices, and which inputs it takes. Read this before using a node whose params are not obvious — the 3D nodes, the post effects, the arrays.
| Parameter | Type | Description |
|---|---|---|
type * | string |
list_presets
The starter documents the studio’s Presets menu offers: complete, working graphs, each a worked example of one subsystem (post chain, tokens, drivers, 3D). Start from the nearest one and change it, rather than building from nothing.
new_from_preset
Open a preset as the project, replacing whatever is open — like new_project, but with a working graph in it. list_nodes then shows what there is to change.
| Parameter | Type | Description |
|---|---|---|
name * | string |
list_elements
The elements in the projects folder: layers the user saved for reuse from the studio (a radar, a readout, a panel), each a working composition with a picture. insert_element puts one into the open project as a new layer; prefer that to rebuilding what the user already has. "folders" on an entry are the folders the user filed it in (tags: it may be in several) — a hint at what it is for; the name alone is what insert_element takes.
insert_element
Insert an element (list_elements) into the open project as a new Layer on top, wired into the Canvas, named after the element (counted up when the name is taken), taking the colours of this project’s Style Tokens. Its nodes are ordinary nodes afterwards: list_nodes shows them, set_param changes them. Returns the new Layer and its nodes.
| Parameter | Type | Description |
|---|---|---|
name * | string | The element’s name as list_elements gives it |
list_prefabs
The prefabs in the projects folder: groups of nodes the user saved for reuse from the studio (a dial, a tick ring, a label block) — a part of a layer, where an element is a whole one. insert_prefab puts one on a Layer’s page; prefer that to rebuilding what the user already has. "folders" on an entry are the folders the user filed it in (tags: it may be in several); the name alone is what insert_prefab takes.
insert_prefab
Insert a prefab (list_prefabs) on a Layer’s page: the group’s nodes with the wires among them, wired into that Layer so it draws at once, taking the colours of this project’s Style Tokens, the group kept as the user saved it. Its nodes are ordinary nodes afterwards. Leave layer out and a prefab that draws arrives as a new Layer of its own, as an element does. Returns the nodes; "unwired" names any whose output the Layer would not take, to connect by hand.
| Parameter | Type | Description |
|---|---|---|
name * | string | The prefab’s name as list_prefabs gives it |
layer | string | The Layer whose page it lands on (list_layers). Omit for a new Layer of its own. |
list_nodes
Every node in the graph, with params and incoming wires.
list_layers
Every Layer: name, order, its own clock (duration in seconds, 0 = follows the document; loop), the nodes on its page, and its clips on the layer timeline. With clips a Layer is on only inside them, each clip restarting the layer from its own zero; once the document has any clip, a Layer with none is not in the composite (the studio still plays it on its own page) — only in a document with no clips at all does every Layer play always. A Layer with its own duration runs that long from each clip's start (or from the document's zero, in a document with no clips), then wraps when loop is set or s…
add_clip
Place a Layer on the layer timeline: on from start for duration seconds, its whole page restarting from the clip's zero. Add the same Layer twice to play it twice. Clips of one Layer may not overlap or run past the document. duration defaults to the Layer's own duration when it has one, else the rest of the document.
| Parameter | Type | Description |
|---|---|---|
layer * | string | |
start * | number | |
duration | number | |
id | string |
remove_clip
Take a clip off the layer timeline. A Layer whose last clip goes plays always again.
| Parameter | Type | Description |
|---|---|---|
id * | string |
add_node
Add a node. params take bare values, or long-form objects: {"base": 5, "expr": "i / n * 30", "jitter": {"amount": 4, "mode": "frozen"}}.
| Parameter | Type | Description |
|---|---|---|
type * | string | |
id | string | |
layer | string | The Layer node whose environment holds the new node. Omit for the root (Canvas, Layers, OGraf, shared drivers). A stream wired from the root into a Layer is moved there anyway. |
name | string | The node's label. A Layer's name is this: what the layers pane and the SVG's data-layer show. |
params | object | |
position | object |
add_image
Read a PNG, JPEG or GIF from disk and add an Image node showing it, centred on x/y. The document keeps only a record (name, size, content hash); the bytes are written to <project>.assets/ when the project is saved, which is where the CLI reads them. height sets the drawn height (0 = native pixels); width follows the aspect unless given.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
height | number | |
id | string | |
position | object | |
width | number | |
x | number | |
y | number |
remove_node
Remove a node; its wires go with it.
| Parameter | Type | Description |
|---|---|---|
id * | string |
set_param
Set one param. Bare value, or long form for expressions/jitter/keyframes: {"base": 10, "expr": "sin(t) * v", "jitter": {"amount": 2, "mode": "frozen"}}.
| Parameter | Type | Description |
|---|---|---|
key * | string | |
nodeId * | string | |
value |
connect
Wire an output into an input OR a param socket — a param key is a toPort. Wiring value1.out into circle1.r drives the radius. One wire per socket; cycles are refused.
| Parameter | Type | Description |
|---|---|---|
from * | string | |
to * | string | |
toPort * | string | |
fromPort | string |
disconnect
Remove the wire feeding a socket. A multi input (a Merge's or Layer's "in") holds several: pass from to remove just that one, or leave it out to remove them all.
| Parameter | Type | Description |
|---|---|---|
to * | string | |
toPort * | string | |
from | string |
set_keyframe
Add a keyframe to a numeric param (t in seconds). Same t replaces.
| Parameter | Type | Description |
|---|---|---|
key * | string | |
nodeId * | string | |
t * | number | |
value * | number | |
easing | string |
render_preview
Render the current graph to a PNG and return it inline — look at what you built.
| Parameter | Type | Description |
|---|---|---|
scale | number | |
t | number |
set_ograf_controls
Make the document a DaVinci Resolve title: set the OGraf node’s control rows (created if missing), in Inspector order. Each row is a param of the node (set_param sets its value) and an output port named by its key: connect it into the params it should drive. kind: number | int | percent | bool | color | text | choice. A choice needs options [{value, label}] and also outputs `<key>_index`. At most 20 rows; keys are identifiers and must not be name, description, version, author, hold, outro, exit, loop, stopAt, in or out. Replacing the list removes the values and wires of rows left out.
| Parameter | Type | Description |
|---|---|---|
rows * | array |
export
Write the document to disk; the format follows the extension. .svg embeds the fonts; .png renders at `t` and `scale`; .ograf (one template) or .drfx (Resolve bundle) exports a DaVinci Resolve title, with the OGraf node’s rows as its Inspector controls.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
scale | number | |
t | number |
render_sequence
Render PNG frames across a time range into a directory (frame-0000.png …).
| Parameter | Type | Description |
|---|---|---|
dir * | string | |
to * | number | |
fps | number | |
from | number | |
scale | number |