CLI and MCP command reference
The full command catalog for scripts and connected agents. Start with the command-line guide for setup and examples.
How to read the tables: the first column is the CLI verb with its arguments (\| separates alternatives, … means “and more of the same”); the second is the MCP tool of the same operation; the third says what it does. Related verbs share a row. The tables follow the reference shipped inside Flux (FluxConfig/Context/FluxContext/CLI-REFERENCE.md), and flux help <verb> prints the installed command’s signature for registry-backed verbs such as resize-plot. For older commands such as render-figure, it prints the general catalogue. Use the command tables below for the full rendering options. invocation, connection, the project, figure and library verbs (with align, arrange and reflow), 3D models, slides, the MCP server, provenance and locks and agent setup.
Invocation and root resolution
Use this machine’s stable launcher; shell commands below use flux as shorthand:
flux <verb> [args] [--flags]flux version reports the version, commit and entry point. If help and a documented flag disagree, identify the installation with config / connect_doctor; a source checkout may need npm run build:cli. Do not silently switch installations.
Project CLI verbs resolve --root → FLUX_PROJECT → cwd. Working from the project is convenient, but not required. A leading positional root remains supported where unambiguous (list /path/to/project, render-figure . growth). Machine/file verbs such as config, validate-plot and rerun-plot do not require a project.
Path rule: CLI filesystem inputs resolve from shell cwd, even with --root. MCP inputs resolve from the project default. Absolute paths work on both surfaces. Document/folder identifiers remain project-relative model identifiers. A shell glob expands before Flux sees it; compose-figure plots/*.svg requires the intended cwd. MCP binding and per-call project details are below.
Identity is detected from the agent environment/MCP handshake. FLUX_CLIENT is an optional journal/lock identity override, not a required session role. A CLI connect does not set cwd or environment for subsequent commands.
Connection protocol
flux connect [<project>|global] [--live] [--refresh] [--depth core|full] [--no-render] [--json]Agents invoke this when asked for flux-connect. An omitted target finds the project around cwd; a path may name the project or a directory inside it. Global mode reads machine context and lists known projects, preserving an existing MCP project binding.
The brief is the reading plan (at most 10,000 characters). Read FLUX.md, CONNECT.md, then the bundle and named images. Core depth includes ProjectContext and immediate links, Rules, recent Log and its title index, a project map, open items/activity and canvas overviews. Full depth adds all documents, individual figures and deck sheets. --no-render omits images; say so in the receipt. --json returns structured pack metadata; it is not a substitute for reading the brief/bundle.
Check every section-end marker and the final sentinel. If a tool truncated the middle or end, read smaller parts until complete. Use read_pack {packId,section:"brief"}, read_pack {packId,section:"A"} (the brief lists section IDs), or sequential read_pack {packId,part:1} calls. Parts are at most 20,000 characters; advance part until the bundle is complete. View images with get_pack_image {packId,index:0} (0-based), or open the printed PNG paths. A stdout-only fallback prints the exact connect --part … --pack … --sources … command to use; keep its source digest.
Return the brief’s receipt shape using only what you read and saw. Proof codes are at bundle section ends and image corners, not in the brief. Never invent them. flux connect --check-receipt <packId> "<proof line>" checks coverage; MCP uses connect_doctor {checkReceipt:{packId,proof:"<proof line>"}}. Report missing sections, trimmed material, unavailable renders and template ProjectContext honestly, then wait.
A “↻ Since you last looked” line on MCP results, and the Claude Code prompt hook, reports external changes during a connected session. read_delta {} reads details and advances the cursor; it can include new canvas images. connect --refresh (or MCP connect {refresh:true}) produces a refreshed pack and change summary. Read relevant changes before acting. Refresh does not authorize new work or watching.
Verb reference
| Verb (CLI) | MCP tool | What it does |
|---|---|---|
connect [<project>|global] [--live] [--refresh] [--depth core|full] [--no-render] [--json] |
connect |
read context and images, then return the brief’s receipt; explicit invocation only |
connect setupconnect doctorconnect remove |
connect_doctor (doctor only) |
agent registration/health; setup and remove are CLI-only, see below |
| — | read_packget_pack_imageread_delta |
bounded pack text, indexed pack images, and changes since the session’s cursor |
mcp [root] [--toolset core|full] |
flux_verbsflux_verb |
stdio server; discover schemas / invoke tools outside the compact default list |
new <dir> [--title T] [--author A] |
— | scaffold a new project |
listreindex |
list_projectreindex |
overview / rebuild project.json.figures[] |
compose-figure <plots…> [--rows N|--cols N] [--id slug] [--gap N] |
compose_figure |
flagship: N plots → one labeled, gridded, captioned figure |
create-figure [--id slug] [--family f --number n --nickname N] |
create_figure |
blank figure (default: appended to the main figure family; the display name derives from family + number) |
set-figure-family <figId> [--family figure| |
set_figure_family |
structured identity — --number inserts at that position and shifts the rest (refs stay valid; numbers are always contiguous 1..N) |
define-figure-family --id slug --display-name N [--ref-template "Mov. {num}{panel}"] [--caption-template "Movie {num} | "]remove-figure-family <id> |
define_figure_familyremove_figure_family |
define/update a custom family / drop one (members move to the figure family) |
arrange <figId> [--ids a,b,c] [--mode auto|tidy|reflow] [--rows N|--cols N] [--gap N | --gap-x N --gap-y N] [--anchor-x start|center|end] [--anchor-y start|center|end] [--scope groupId]auto-label <figId> |
arrange_figureauto_label |
tidy an existing row, column or grid, or reflow panels into a new one — signed gaps overlap, anchors fix the selection bounds (details) / letter panels a,b,c… (panels missing a label get one created first, so import-plots → arrange → auto-label just works) |
add-fig-text <figId> "text" [--x --y --size-pt n] [--panel-label] |
add_fig_text |
add a text element; --panel-label = a semantic panel label auto-label letters |
toggle-text-run-style <elId> <from> <to> <bold|toggle-text-run-script <elId> <from> <to> <super|sub>set-text-run-color <elId> <from> <to> <#hex|inherit> |
toggle_text_run_styletoggle_text_run_scriptset_text_run_color |
format a character range of one text element (0-based offsets into its text, to exclusive) — what selecting letters in the editor does; toggle-text-style <bold| still styles whole elements |
restyle <figId> <partId> [--stroke c] [--fill c] … |
restyle_part |
restyle a plot or 3D part by stable id (restyle-part is an alias) (survives regeneration) |
set-series-color <figureId| |
set_series_color |
one colour for a whole plot series — line stroke, marker faces + edges, bar / band fills, error bars and its legend swatch, one override per part (survives regeneration); --clear restores the generated colours; a colour-mapped series is refused (use set-plot-color-scale); restyle of a series’ whole line / points also repaints its legend swatch |
get-plot-data <figureId| |
get_plot_data |
a plot’s data from its fluxplot manifest: series with exact x/y, per-point ids and colour; hexmatrix bins, meanmark / fluxbox statistics, distributions, field values, image channels, bands; colour scales (tables only with lut); axis domains and scales; overlays with a bracket’s test / p / effect size. Arrays longer than --limit (default 1000) are windowed from --offset and listed in pages with their true length — read data precisely instead of from a PNG |
set-style <ids…> [--fill] [--stroke] [--fill-opacity 0–1] [--stroke-opacity 0–1] … |
set_style |
element-level style; the channel alphas are independent of --opacity, which multiplies both |
delete-element <ids…>delete-figure <figId>duplicate-figure <figId> |
delete_elementsdelete_figureduplicate_figure |
remove elements / remove or copy a whole figure |
align <figId> <edge> [--ids a,b,c] [--target selection|group <ids…>ungroup <ids…> |
align_figuregroup_elementsungroup_elements |
align (left/ |
align-plot-spines <figId> --ids a,b --axis x|y --reference e:<elementId>| |
align_plot_spines |
align the plots’ actual x spines (vertically) or y spines (horizontally) to one reference plot, which stays fixed; whole groups move rigidly; ambiguous or invisible spines are refused atomically, nothing moves (details) |
resize-plot <elementId> --width 3.5 --height 2.4 [--unit in|cm|pt|px] [--figure figId] [--keep-aspect] |
resize_plot |
resize a plot’s figsize without Python: fluxplot ≥ 0.4 plots reflow (text, strokes and markers keep their point sizes); older or unsupported plots stretch, with the reason; content scale is respected; returns the relayout report |
match-plot-areas <ids…> --dimension height|width|both [--reference id] [--panel id] [--figure figId] |
match_plot_areas |
match the plots’ data areas in one edit using reflowed geometry; the reference (else the first element) keeps its size; --panel scopes a multi-panel reference; returns the sizes and any feasibility warnings |
set-plot-layout-mode <ids…> --mode auto|stretch [--figure figId] |
set_plot_layout_mode |
choose automatic reflow (auto, the default, stored as absence) or explicit stretch for plot elements; legacy plots need one regeneration with fluxplot ≥ 0.4 before they can reflow |
figure-attach <figId> <elementId> [--start <id>[:anchor[:gap]]] [--end <id>[:anchor[:gap]]] | [--to <id> --side n|e|s|w [--gap px] [--align center|start|end]] | [--detach] |
figure_attach |
stick a line’s ends to shapes (a connector; anchor auto aims at the other end, or center, n/e/s/w, fx,fy) or sit any element beside another (a label); the stuck element then follows what it is attached to; --detach frees it. A canvas holding a stuck element is saved in a newer format older Flux versions do not open |
cascade <figId> <property> <ids…> [--delta n|--factor n] [--dl --dc --dh] [--order selection|layer|x|y] [--reverse] [--first-fixed] |
cascade |
stepped delta across elements — rank k gets value + delta·step (step = k with --first-fixed, else k+1; --factor = ×factor^step); property ∈ x/--dl/--dc/--dh); a group is one rigid rank |
set-z <figId> <front|set-figure-layout <figId> [--x --y --width --height --background --name] |
set_zset_figure_layout |
stacking order / figure frame (--name legacy seam: a designation like “Figure S3” routes to family+number, anything else becomes the nickname — prefer set-figure-family) |
render-figure <id> [--png] [--out f] [--scale n] |
get_figure_image {id}render_figure {id} (SVG) |
render to SVG/PNG — the look step (warns when panels are stale vs plots/) |
render-canvas [canvasId] [--png] [--out f] |
get_canvas_image |
render the whole canvas (all figures at their x/y) — catches overlap/layout problems per-figure renders can’t |
sync-figure [figId] |
sync_figure |
refresh fig/assets copies from regenerated plots/ sources in place (captions/restyles survive); a size you chose deliberately in Flux stays fixed, while an untouched native-size plot follows the new Python size |
caption <id>set-caption <id> <md> [--panel a] |
get_captionset_caption |
read / write the caption; the Lead. **a**, … **b**, … convention is distributed into per-panel blocks; --panel writes one panel; --panel __ps__ writes unlabelled closing prose |
normalize-embeds |
normalize_embeds |
clear legacy alt-text captions from embed lines (canonical embeds are {#fig-id}) |
manuscript [--doc r]set-manuscript [--doc r] <text|--file f> |
get_manuscriptset_manuscript |
read / overwrite a .qmd |
docsnew-doc <name> [--folder DIR]delete-doc <path> |
list_documentscreate_documentdelete_document |
list / add / delete documents (delete removes the .qmd + its comments sidecar and the manifest forgets it; legacy main manuscripts and standard Context docs are protected; figures and references it used are untouched) |
new-doc-folder <parent> <name>move-doc <path> <folder> |
create_document_foldermove_document |
create nested folders / move documents with comments and relative links; existing destination files are refused |
ref <figId> [--doc r] |
insert_figure_ref |
append @fig-<label> to a doc |
insert-slide-embed <deck> <slide> [--doc r] [--width 75%] [--caption "…"] [--anchor "unique text"] |
insert_slide_embed |
insert a linked slide block, generate its step-0 SVG, and return IDs + Markdown. Anchor must occur exactly once; omitted anchor appends. HTML plays manually; PDF/Word show step 0 |
add-reference . <bibtex|--file f>cite-doi <doi> |
add_referencecite_doi |
grow references/ |
zotero-sync [--bib f] [--data-dir d] [--attach copy|link] [--defer-fulltext] [--force] [--save] |
zotero_sync |
pull new references + PDFs from the connected Zotero Better-BibTeX auto-export into FluxLib (one-way, idempotent; an unchanged export is skipped from a stat alone — --force re-scans and also picks up attach backfill; --defer-fulltext links pointers without reading the PDFs — text backfills lazily; --save persists overrides as the machine settings) |
comments [--doc r] [--all]resolve-comment <id|quote> [--doc r] [--note "…"] |
list_commentsresolve_comment |
project-wide list/unique resolve by default; --doc targets one document (see REVIEW.md in the installed FluxContext manual) |
add-comment --quote "…" --body "…" [--doc r] [--at n] |
add_comment |
open a new thread — ask the human a question in their margin |
inbox [query] [--kind annotation|comment] [--surface s] [--doc d] [--figure f] [--deck d] [--tag a,b] [--status s, …|all] [--archived] [--since ISO] [--text t] [--holder name] [--claimed me|others|none|any] [--mine] [--packets] [--json] |
list_inbox |
Annotations and comments shared with Flux AI; packets:true adds current target state and up to six inline images. |
wait-inbox [query] [filters] [--timeout seconds] [--cursor c] [--mode queue| |
wait_for_inbox |
Opt-in wait for routed items; returns {items,. |
claim <id> [--note text] [--force] |
claim_item |
First live claimant wins. Force only on explicit instruction. |
release <id> |
release_item |
Release your claim. |
reply <id> <text…> [--needs-input] |
reply_item |
Reply in the thread; flag a question for the user. |
resolve <id|unique quote> [--note text] |
resolve_item |
Resolve after completing the work. |
archive <id>unarchive <id> |
archive_itemunarchive_item |
Hide or restore items when asked. |
inspect <TargetRef-json| |
get_target |
Saved target state without rendering. Example: part:fig-2/. |
| — | get_inbox_image |
Fetch a snapshot by id; PNG, long edge ≤1600 px. In core mode use flux_verb {verb:"get_inbox_image",. |
context-init |
ensure_context |
ensure the project’s Context/ layer exists |
log <text…> [--title "…"] [--file f] [--agent a] [--surface s] [--checkpoint] |
write_log |
append a dated entry to the Log (Context/NOTEBOOK.md) only when asked; automatic agent · surface · host:cwd byline, manuscript lock, newest last |
read-log [--tail n] [--since-checkpoint] [--titles] [--json] |
read_log |
read entries as Markdown (--json for parsed objects); checkpoints include the summary and later entries, titles omit bodies, history is never deleted |
compile [--doc path.qmd] [--to pdf|html|docx] [--zotero-fields] [--zotero-library a.docx,b.docx] |
compile |
render via Quarto (needs quarto); reports the output path + figures/citations resolution (unresolved @keys named). --zotero-fields writes docx citations as live Zotero fields (refreshable/--zotero-library takes .docx files already written with Zotero, binding citations to the same works to that library |
check [--doc path.qmd] [--pack references, |
check_manuscript |
the Manuscript Check findings for a document (read-only): rule id, severity, message, doc:line:col, an excerpt and any safe fix; --json for the structured list. The same checks as the Paper pane on Alt+K |
validate [file]validate-plot <svg> |
validate_projectvalidate_plot |
check writes + lint (empty figures, figures embedded in no doc, overlapping frames) / check a semantic plot (manifest ids + geometry — rejects log-zero bar anchors) |
rerun-plot <recipe.json> [--key v…] [--only [name]] [--trust] |
rerun_plot |
review the command and pass --trust on a project’s first run; --only reruns just this recipe’s plot from a figure-level script (sibling files untouched) |
list-dissections [plot] |
list_dissections |
a plot’s companion material in plots/ (groups + files); no arg = every plot that has a dissection folder. Writing needs no verb — drop files in the folder |
versionconfig |
config_paths |
this build’s version/commit (bundle vs source) / machine paths + build info |
search <query…>search-text <query…> |
search_referencessearch_fulltext |
library metadata / stored PDF text; LIBRARY.md in the FluxContext manual covers query fields and research tools |
lib-add <doi|bibtex…> [--file f] [--attach-files] |
add_to_library |
add exactly one DOI, BibTeX text or file input to FluxLib; file imports support BibTeX/RIS and attachments |
assign-pdfs [--dry-run] |
assign_pdfs |
identify PDFs in FluxLib’s pdfs_to_assign inbox from their contents; uncertain matches remain unresolved |
snip-paper <key> --page N [--rect x1,y1,x2,y2]cite <key> |
snip_paperget_citation |
PDF-region PNG with provenance / short formatted citation |
| — | get_reading_contextget_paper_text |
the Reader’s captured selection/flux_verb in core mode |
| — | search_worldsemantic_searchsimilar_papersciting_works |
discovery beyond FluxLib; OpenAlex and optional Semantic Scholar sources, see schemas |
fetch-pdfs [--key K]ingest-pdf <file> --key K |
fetch_pdfsingest_pdf |
download OA PDFs / file a hand-downloaded PDF into items/<citekey>/ |
highlights [search q] [--key K] [--md]add-highlight --key K --page N --quote "…" |
list_highlightssearch_highlightsadd_highlight |
read / add Reader highlights and notes |
| — | get_app_contextdispatch_commandact_on_selection |
the live bridge (app open only) |
view --png --out <file> [--max-edge n] [--root R] |
get_view {maxEdge?} |
capture the open project’s Flux window as PNG plus current context; maxEdge defaults to 1600, clamped to 256–1600; requires viewing enabled in Settings |
Drawing, groups and text styles
| CLI | MCP | Operation |
|---|---|---|
add-panel <figureId> <source.svg> · import-plots <figureId> <plots…> |
add_panel · import_plots |
Place an SVG panel at a specified position, or import several plots into an existing figure. |
add-path <figureId> --nodes JSON · edit-path <id> --nodes JSON |
add_path · edit_path |
Create a vector path or replace its editable nodes. Specify whether the path is open or closed. |
scale <ids…> --factor n · rotate <ids…> --degrees n |
scale_elements · rotate_elements |
Scale or rotate a selection about its centre. Use --px and --py to choose a pivot. |
distribute <figureId> --axis h --ids a,b,c |
distribute |
Distribute selected objects on one axis. Supply --gap for an exact spacing. |
duplicate <figureId> <ids…> --count n --dx n --dy n · reorder <figureId> <id> <index> |
duplicate_elements · reorder_element |
Stamp offset copies or set an element’s stacking index (zero is bottom). |
set-crop <id> --x n --y n --width n --height n · reset-crop <id> |
set_crop |
Choose a window on an image or plot. Reset shows the full content at the current scale. |
set-guides <figureId> --x 20,80 --y 30,60 · resize-figure-frame <figureId> |
set_guides · resize_figure_frame |
Set figure-local guides, or move and resize the figure boundary while keeping artwork in world position. |
bring-inside <figureId> --ids a,b |
bring_inside |
Translate elements into the frame, keeping groups together. |
list-groups --figure id · rename-group <id> <name> · set-group-state <id> |
list_groups · rename_group · set_group_state |
Inspect membership and nesting, rename a group, or hide, show, lock or unlock it. |
text-styles [--global] · create-text-style --name name --from id |
list_text_styles · create_text_style |
List styles or make one from an element or explicit type settings. |
apply-text-style <styleId> <ids…> · update-text-style <id> · delete-text-style <id> |
apply_text_style · update_text_style · delete_text_style |
Link elements to a named style, edit the style across linked elements, or unlink its elements by deleting it. |
toggle-text-style <which> <ids…> · save-global-text-style <styleId> |
toggle_text_style (toggle) |
Toggle bold, italic or underline across selected text, or copy a project style into the machine library. |
render-figures [--doc p.qmd] |
— | Prepare the SVG renders needed for a manuscript’s embedded figures before invoking Quarto. |
cascade-tracks <deckId> <slideId> <property> <trackIds…> --delta n |
cascade_tracks |
Step a timing property across the selected effects. Use --factor for a multiplicative change. |
Literature and library maintenance
| CLI | MCP | Operation |
|---|---|---|
lib · missing-pdfs [--json] |
— | Show the library location and count, or list references missing full text and the reason for each. |
reconcile · hydrate [--key K --refresh] |
reconcile · hydrate_library |
Reconcile project references against FluxLib, or fetch library metadata from OpenAlex. |
similar <key> · related <ref> · by-author <ref> · citing <key-or-doi> |
similar_papers · related_works · author_works · citing_works |
Find similar papers, OpenAlex related works, other papers by the author, or papers that cite the reference. |
fetch-supplements [--key K] · grobid [--run] |
fetch_supplements · grobid |
Download supplements from the Europe PMC open-access subset, or enrich stored PDFs using a local GROBID service. |
tag <key> <tag…> [--remove] · collection <key> <name…> [--remove] · set-status <key> <status> |
organize_paper |
Organize a library paper by tags, collections and reading status. |
Align, arrange and reflow from the command line
These verbs are the file-based twins of the editor’s Align & Arrange panel (A, with Alt+T for Arrange) and the plot Layout controls — see Keyboard shortcuts.
arrange <figId> --ids a,b,c --mode autocrystallizes the nearest row, column or grid. With readable semantic axes, plots align on those axes. Use--on boxesto force bounding boxes, or--on axesto request axis alignment.arrange <figId> --ids a,b,c --mode tidy --gap-x 16 --anchor-x center --anchor-y centerinfers a row, column or simple grid from the selection and tidies uneven gaps while preserving internal offsets. Omit the gap overrides to keep already uniform spacing exactly.--mode reflow --rows Nor--cols Ndeliberately changes the topology (colswins if both are given;tidyrejects rows/cols).--gapsets both axes;--gap-x/--gap-ytake precedence. Every gap accepts a finite signed value: negative values overlap tracks, with no lower floor, and extreme negative spacing may reverse physical positions while keeping track membership, sizes and stacking order. Anchors arestart|center|endand fix the actual selection bounds, overlaps included.--scopeaddresses the children of an entered group. Calls without the new flags keep the old top-left grid defaults.alignalso accepts--target selection|figure|reference,--reference <unit key or member id>and--scope.align-plot-spinesaligns semantic spines:--referencenames a stable unit,e:<element-id>org:<group-id>;--choicesmaps unit keys to{plotId, panelId, spineId}for multi-panel plots. The command reports per-unit eligibility problems instead of moving a subset, and never changes domains, sizes or source assets. It needs the project’s accepted SVG and its asset-local semantic sidecar; refresh or reimport plots whose accepted metadata is missing. Discover the exact schemas withflux_verbsbefore constructing advanced choices.resize-plot,match-plot-areasandset-plot-layout-modeact on the plot’s measured layout (fluxplot ≥ 0.4). A deliberate size survivessync-figureand regeneration; plots saved by older fluxplot versions, polar and 3D plots, subfigures and compressed layouts stretch, and the relayout report names the reason.
Scientific images in Figure
These commands work on the same image elements as the live view. Run them in a saved project, or pass --root.
| CLI | MCP tool | Result |
|---|---|---|
place-image <figureId> <bundle.fluximg> [--x n --y n --width n --name label --view JSON --crop JSON] |
place_image |
Copy or reuse the bundle, place it on a figure, and return element and asset IDs. |
image-info <elementId-or-assetId> |
image_info |
Read axes, units, encoding, channel statistics, layers and placements. An element ID also returns the stored and resolved view and its crop. |
set-image-view <elementId> --view JSON |
set_image_view |
Patch channel ranges, colours, plane, projection, layers or annotations. Use --crop JSON for a region in image pixels or --reset-crop for the full image. |
For example, --view '{"index":{"z":2},"furniture":{"scalebar":{}}}' selects the third depth plane and shows its scale bar. A projection takes a dimension, a mode and a half-open interval (from inclusive, to exclusive). The result describes the resolved view. Crop and view edits preserve the measured pixels.
Figure 3D models
| Verb (CLI) | MCP tool | What it does |
|---|---|---|
add-model <figureId> <source.glb> [--x n --y n --width n --height n --name N --view '<json>'] |
add_model |
Copy a GLB and optional raw sidecars into the figure; returns element/asset IDs, parts, warnings and a poster result. |
set-model-view <elementId> [--figure id --preset front| |
set_model_view |
Patch the saved model view. Explicit properties apply after the preset. Repeat --state name=weight, or use --frame n for a sequence; these forms are exclusive. |
set-model-field <elementId> <fieldId> [--cmap name --min n --max n | --reset] |
set_model_field |
Remap a value field’s colormap and range (switches the model to source colours; explicit part fills survive). --reset drops the remapping. |
restyle-part <figureId> <partId> [--element id --fill c --opacity n --hidden | --show] |
restyle_part |
Alias of restyle, using the same stable mesh/furniture/group IDs. A mesh fill on a model in uniform colours switches it to source colours in the same edit, so the fill shows. |
model-info <source.glb> [--morph-with other.glb] |
model_info |
Read-only file inspection: stats, bounds, topology, names, fields, warnings/refusal and optional morph compatibility; no project required. Fails for a missing file or a path that is not .glb. |
render-model-posters [--figure id | --deck id --slide id] [--prune] |
render_model_posters |
Batch-render saved Figure views, or a deck’s Design stills and every build step’s still, into the project cache. Pruning protects every live figure view and deck step still and all entries younger than 14 days, and also bounds the shared machine cache (14 days, then least-recently-used down to 1 GiB). |
Live dispatch_command also takes set_model_view and set_model_field (camelCase parameters, target or the current selection) as one Undo step. Posters, --no-poster, --state rules and the deck refusal: “3D model panels” in the FluxContext manual’s PROJECT-AND-FIGURES.md.
Slide commands
| Verb (CLI) | MCP tool | What it does |
|---|---|---|
decksnew-deck [--title T] [--theme T] |
list_deckscreate_deck |
list / create a deck |
add-slide <deck> [--name N] [--layout L]delete-slide <deck> <s> [--force]duplicate-slide <deck> <s> |
add_slidedelete_slideduplicate_slide |
slide structure |
reorder-slides <deck> --order a,b,cset-slide <deck> <s> [--notes| |
reorder_slidesset_slide |
reorder / patch a slide (notes, camera, …) |
set-theme <deck> <theme> |
set_deck_theme |
flux-dark| |
add-text <deck> <s> "…"add-figure <deck> <s> <figId> |
add_slide_textadd_slide_figure |
add content (add-figure copies a project figure in — panels stay addressable; slide text is the figure text element: no math/rich-text slide elements) |
add-slide-model <deck> <s> <source.glb> [--x n --y n --width n --height n --name N --no-poster] |
add_slide_model |
Import a project-owned GLB and sidecars; returns element/asset IDs and warnings. |
add-turntable <deck> <s> <beat> <element> [--turns n --direction cw|ccw --duration ms --start ms --pace soft|constant] |
add_turntable |
Turn a 3D model on one step as an ordinary Change: a soft start and stop by default, --pace constant for loops and spins chained step after step; defaults to one clockwise turn over 6000 ms. Shape-state edits can share the same Change. |
add-video <deck> <s> plots/ |
add_slide_video |
import MP4/MOV, preserving original; optional --x, --y, --width, --height, --muted, --loop |
set-video-track <deck> <s> <beat> <el> start |
set_video_track |
playback command (start, pause, stop), independent of appearance; --start ms offset, after Design |
set-video-settings <deck> <s> <el> --muted true --loop false |
set_video_settings |
set clip audio/loop options |
add-beat <deck> <s> [--label L]set-animation <deck> <s> <beat> --target E [--preset P …] |
add_beatset_animation |
build timeline + appearance tracks (drawOn/ |
animate-element <deck> <s> <elId> [--exit] [--preset P] [--beat-index n] [--part id]animate-part <deck> <s> <elId> <part> [--beat-index n] |
animate_elementanimate_part |
an enter or exit with the per-kind default (text, image, plot → fadeRise; rect, ellipse, arrow → scaleIn / scaleOut; line, path → drawOn / drawOff) / one plot part’s suggested reveal on a build beat |
animate-plot <deck> <s> <elId> [--per-panel] [--pace classic|v2] |
animate_plot |
the whole plot build, as Auto-animate does: three clicks — axes & grid, data, legend & annotations; --per-panel builds panel by panel; --pace classic keeps the older timings. Replaces the element’s generated build; manual tracks are kept |
draw-along-x <deck> <s> <elId> <seriesId> [--pen auto|on|off] [--duration ms] [--off] |
draw_along_x |
one data line draws along x at an even pace; its band and error bars open behind the same front and its markers grow in as it reaches them; --pen adds a lead dot (auto: only when no markers ride along); --off removes the x clock and leaves the effects and their timing as they are |
set-plot-view <figureId| |
set_plot_view |
save a data-unit Axis view (lines, points, bars, cells and hexagons re-project; the viewed axis is re-ticked; --y2-* / --x2-* address a twin value axis); a deck beat writes a Change, reset restores generated axes |
set-plot-color-scale <figureId|get-plot-color-scales <figureId| |
set_plot_color_scaleget_plot_color_scales |
recolour a plot’s colour scale live in data units (colormap, limits, norm, extend); a deck beat writes a Change the colours tween through; --regenerate writes the complete __fluxplot__ control and re-runs the recipe; get lists scales, editability and the live view |
set-transform <deck> <s> <beat> E --state '<json patch>' [--replace-state] [--curve grammar] [--arc -1..1] [--turn rigid|shrink] [--to-asset id] […]apply-anim-template <deck> <s>group-tracks / ungroup-tracks |
set_transformapply_anim_templategroup_tracks / ungroup_tracks |
transform tracks (element tweens to a changed version of itself; plot-content Become); --arc bends a box move (Become pieces too); --turn says how a line or straight connector turns — shrink (default: the ends move straight, so it shortens mid-turn) or rigid (keeps its length) / role-matched templates / animator lanes |
restore-state <deck> <s> <beat> <elId> --to N [--keys x,y] |
restore_state |
Return to Design (--to 0) or Return to before step N: a Change at this step back to the element’s earlier look, merged into an existing Change for it (the restored keys win and the others stay); --keys narrows it. Refused after a content change such as a Become |
suggest-arcs <deck> <s> <beat> |
suggest_arcs |
the Animator’s Suggest arcs: give the box moves of one step that would cross mid-flight the smallest of 0.25, 0.45 and 0.83 that clears them; moves whose arc you set are left alone; returns the tracks written and how many pairs collided |
focus <deck> <s> <beat> <elementIds…> [--level 0.3]unfocus <deck> <s> <beat> |
focusunfocus |
Focus: dim everything visible at that step to 30 % (--level) except the given elements, the labels inside them and their groups, as one group of dim tracks (an element an earlier Focus dimmed climbs back to full) / Unfocus: on a later step, bring everything a dim left below full back to 100 % from where it is |
slide-attach <deck> <s> <elId> [--start <id>[:anchor[:gap]]] [--end <id>[:anchor[:gap]]] | [--to <id> --side n|e|s|w [--gap px] [--align center|start|end]] | [--detach] |
slide_attach |
the slide twin of figure-attach: a connector’s ends stick to shapes, or an element sits beside another; the stuck element follows moves, Changes, arcs and springs of what it is attached to, in the editor, Present and every export. A deck holding a stuck element is saved in a newer format older Flux versions do not open |
anim-style create <deck> --name L --family F --preset P [--curve grammar --params json --influence json --arc -1..1 --stagger json]anim-style set <deck> <id> [--curve grammar --params json --influence json --arc -1..1 --stagger json]anim-style delete <deck> <id>anim-style list <deck> |
anim_style |
deck-level linked effect settings; deletion preserves linked tracks’ resolved settings |
animate-like <deck> <s> --from t1 --to t2,t3 [--beat beatId]set-track <deck> <s> <t> [--style id|--no-style] [--anchor t1:end:0|--no-anchor] [--start ms --duration ms --curve grammar] [--stagger-each ms|--stagger-total ms] [--stagger-curve curve --stagger-from start| |
animate_likeset_track |
link effects by family; follow same-step timing; resolved start is reported with an anchored marker. Stagger: --stagger-spacing true (with x/y from start/end) waits each part in proportion to its distance along the axis, even is one step per part; --stagger-by radial ranks parts by distance from --stagger-origin x,y (data units; absent = their centre) — from start they ripple out, from end they collapse in (the deck is saved in the newer format). --pair-lag sets a hand-off Become’s piece lag (0 = all pieces at once) |
align-tracks <deck> <s> --tracks t1,t2 --edge start|end --to ms|t3[:start|end] [--beat id|index] [--resize]inherit-track <deck> <s> --from t1 --to t2,t3 [--beat id|index] [--include-start] |
align_tracksinherit_track |
the Animator’s Alt+A / Alt+D (land resolved starts or ends on a time or another effect’s edge; --resize keeps the opposite edge; a moved start detaches an anchor) and Ctrl+Alt-drag Inherit (exact animation parameters: a linked source links the targets; otherwise duration, curve, stagger, and same-phase preset/params/arc copy; start only with --include-start) |
ghost-transform <deck> <s> <beat> <source> [--count 3 --original stay| |
ghost_transform |
create independent copies that begin at the source’s prior-step state and transform to separate destinations; returns copy/track IDs for later edits |
become <deck> <s> <beat> <source> --target E [--part a,b --source-part c,d --mode consume|handoff --pair auto| |
become |
Become a live destination. With --keep-source, copies fly to it while the source remains visible; --to E (repeatable) or --members '[{"element":E, instead of --target names a destination set (objects and parts of any plots, always a hand-off); --asset ID [--force] instead performs a data-only Become; --method picks how a filled interior goes (dissolve is the default); --pair-lag makes a hand-off’s pieces peel off one after another in reading order (a new hand-off of 3+ pieces gets 0.15; 0 = unison); all forms accept --start, --duration, --easing |
appear-from <deck> <s> <beat> --dest E --from S [--part a,b --source-part c,d --pair P --reveal flip|draw --method M --keep-source --start ms --duration ms --easing E] |
appear_from |
Appear from… authors the same source-owned hand-off; --members <json> instead of --dest reveals a destination set |
swap-become <deck> <s> <track> |
swap_become |
reverse a hand-off Become, preserving timing, style and follower links |
set-beat <deck> <s> <beat> [--label L --advance click|with-prev|auto --auto-delay ms] |
set_beat |
edit step label and advance timing |
reorder-beats <deck> <s> --order b0,b2,b1 |
reorder_beats |
reorder steps; the resting step stays first |
move-track <deck> <s> <track> <toBeat> [--at lane] |
move_track |
move an effect to another step; cross-step anchors detach at their resolved time |
duplicate-track <deck> <s> <track> |
duplicate_track |
duplicate an effect with a fresh id immediately after it |
reorder-tracks <deck> <s> <beat> --order t2,t1 |
reorder_tracks |
set lane order without changing timing |
set-track-enabled <deck> <s> <track> [--enabled true|false] |
set_track_enabled |
enable/disable an effect while preserving its settings |
set-part-visibility <deck> <element> <part> [--mode show|animate|mask] |
set_part_visibility |
retained headless/back-compat resting visibility control; no GUI tri-state |
set-part-style <deck> <element> <part> --patch '<json>' |
set_part_style |
merge part-style overrides; null deletes a key |
validate-deck [deck]export-deck <deck> [--out F] |
validate_deckexport_deck |
schema-check / export one offline .html |
export-slide-video <deck> <slide> [--out F] |
export_slide_video |
single-slide MP4; --step-delay (default 1000), --start-hold, --end-hold in milliseconds; --height 720|1080|2160, --fps 30|60 |
--curve accepts the grammar and catalog names in animation curves: spring(0.35[, v=2]), spring(k=170,c=26,m=1), bezier(x1,y1,x2,y2) / cubic-bezier(...), steps(n[,start|end]), or standard, smooth, enter, exit, linear, gentle, overshoot, anticipate, anticipate + overshoot, settle, snappy, bouncy, playful, steps, hold, quick smooth, glide. Legacy --easing remains supported.
MCP server
Start with an optional default project (connect can change it):
flux mcp /path/to/projectRegister supported agents with connect setup (below). Prefer MCP when you want to see a figure (get_figure_image returns the PNG inline) or act on the user’s live selection.
Provenance and locks
- Every write appends a line to
.meta/journal.ndjson(ts,client,action). Read it to see what changed since you last looked ({action, client}per line). - Writes take advisory locks (
projectfor figures,manuscriptfor prose/comments/notebook log entries). If you getdeferred: "<name>" is locked …, the user is mid-edit in the app — wait a moment and retry. The operation owns renewal/release; do not remove a lock or force a write.
MCP connection and paths
flux mcp [root] [--toolset core|full] starts the stdio server. It can start without a project. A root argument, FLUX_PROJECT, or the nearest project within eight cwd levels supplies a default root; this alone does not connect or load context. Call connect {target:"/path/to/project"} only when the user asks for flux-connect. Use target:"global" for global context; it preserves any existing project binding. A project tool accepts an optional project override; relative overrides resolve against the bound project and do not change it. With no binding, pass an absolute project path.
CLI filesystem inputs resolve relative to the shell cwd. MCP filesystem inputs resolve relative to the project root. Absolute paths are honoured. Machine/file tools work unbound with absolute paths; relative paths require a project default. Document and folder identifiers remain project-relative model identifiers on both surfaces.
The default core toolset is compact. flux_verbs lists every verb and tool in one line each; flux_verbs {query} returns the matches with their schemas; flux_verb {verb, args} runs any of them with the same validation and result as its dedicated tool, including tools the core list does not show. Select --toolset full or FLUX_MCP_TOOLSET=full to expose all dedicated tools. The MCP connect prompt provides a skill-free entry.
Agent installation and health
Setup is a user-authorized CLI operation, outside the MCP verb registry:
flux connect setup --dry-run
flux connect setup --agents claude,codex
flux connect doctor --json
flux connect remove --agents codex --yesSetup preserves unmanaged skills and unrelated registrations, and backs up changes. Use --yes to confirm a replacement, --use-this-install to select the launcher owner, or --create-local-bin for convenience shims. Restart agent sessions afterward. Codex users review the installed refresh hook in /hooks. The read-only core MCP connect_doctor returns the same per-check diagnostics; it cannot change agent config. Personal UserContext skills publish only to connected vendors, with collisions and edited copies left intact. The flux-connect skill itself requires explicit invocation.