fui-studio-mcp

v0.1.4
fui-studio-mcp Checked 2 days ago Published 17 days ago

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

ParameterTypeDescription
heightinteger
namestring
seedstring | number
widthinteger

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.

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

ParameterTypeDescription
overwriteboolean
pathstring

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.

ParameterTypeDescription
categorystring

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.

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

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

ParameterTypeDescription
name *stringThe 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.

ParameterTypeDescription
name *stringThe prefab’s name as list_prefabs gives it
layerstringThe 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.

ParameterTypeDescription
layer *string
start *number
durationnumber
idstring

remove_clip

Take a clip off the layer timeline. A Layer whose last clip goes plays always again.

ParameterTypeDescription
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"}}.

ParameterTypeDescription
type *string
idstring
layerstringThe 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.
namestringThe node's label. A Layer's name is this: what the layers pane and the SVG's data-layer show.
paramsobject
positionobject

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.

ParameterTypeDescription
path *string
heightnumber
idstring
positionobject
widthnumber
xnumber
ynumber

remove_node

Remove a node; its wires go with it.

ParameterTypeDescription
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"}}.

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

ParameterTypeDescription
from *string
to *string
toPort *string
fromPortstring

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.

ParameterTypeDescription
to *string
toPort *string
fromstring

set_keyframe

Add a keyframe to a numeric param (t in seconds). Same t replaces.

ParameterTypeDescription
key *string
nodeId *string
t *number
value *number
easingstring

render_preview

Render the current graph to a PNG and return it inline — look at what you built.

ParameterTypeDescription
scalenumber
tnumber

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.

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

ParameterTypeDescription
path *string
scalenumber
tnumber

render_sequence

Render PNG frames across a time range into a directory (frame-0000.png …).

ParameterTypeDescription
dir *string
to *number
fpsnumber
fromnumber
scalenumber