ENGINE COMMAND CATALOGUE · docs/api

Engine API & 118 Commands

Single versioned JSON-Schema command catalog driving the desktop window, Monty scripts, headless batch CLI, and MCP server.

118 commands Catalog hash: b3:f4c059caae7ee3100bbf472db2c560bd CLI parity: nyx api list / nyx api show <cmd>

Every operation in nyx — from creating a parametric wafer-frame rectangle or importing a GDSII layout to building an adaptive mesh, submitting a sweep, running a Craig–Bampton circuit quantisation, or exporting an HDF5 results file — is an engine command registered in Engine::catalog() (crates/nyx-engine).

The current catalog holds 118 commands (b3:f4c059caae7ee3100bbf472db2c560bd), each backed by a JSON Schema and a generated Markdown page in docs/api/. Because the egui desktop window, .nys Monty scripts (nyx-script), JSON-lines command lists (nyx run), and the MCP server (nyx-mcp) all dispatch through the same Engine::call boundary, an analysis run interactively in the window is bit-for-bit reproducible from a headless script.

Inspecting the Catalog from the Terminal

nyx api list                 # print all 118 commands and their access tier
nyx api show figure          # full schema, defaults, and example for `figure`
nyx api show solve_run --json

Each command declares an explicit access tier (read, edit, or expensive) so dry-run checkers (nyx check FILE) and AI hosts can distinguish side-effect-free queries from mesh builds, solves, and disk exports.

Command Groups

  • Parametric Geometry & GDSII (38 commands): add_rect, add_circle, add_ellipse, add_polygon, add_polygons, add_rounded_rect, add_box, add_cylinder, add_cone, add_sphere, add_torus, add_extrude, add_revolve, add_union, add_difference, add_intersect, add_cut, add_transform, add_pattern, add_overlay, add_chip_stack, add_sheet, add_pml, add_absorbing_layer, add_periodic, add_size, add_tag, import_gds, geometry_names, set_geometry, set_param, remove_param, rename_feature, remove_feature, suppress_feature, tag_feature, list_features, list_operations.
  • Physics, Materials & Mesh (24 commands): add_physics, remove_physics, set_active, set_problem, set_study, set_physics_params, set_coupled_loop, add_condition, remove_condition, add_pml_conditions, add_material, remove_material, set_material, describe_material, list_materials, evaluate_material, bcs_surface_impedance, list_remote_materials, search_remote_materials, fetch_material, import_material, set_mesh, mesh_build, check_project.
  • Solves, Jobs, Sweeps & Optimization (24 commands): solve_run, convergence_check, eme_sweep, sensitivity_run, optimize_run, sweep_run, sweep_table, sweep_cancel, job_list, job_status, job_wait, job_cancel, poll_jobs, queue_submit, queue_list, queue_get, queue_wait, queue_hold, queue_release, queue_pause, queue_resume, queue_set_priority, queue_cancel, pml_diagnostics.
  • Fields, Analyses, Figures & HDF5 Storage (30 commands): result_info, result_field, field, field_op, probe, line_cut, integrate, extremum, confinement, overlap, analyse, list_analyses, figure, export_results, open_results, results_file_info, project_new, project_open, project_load, project_save, project_info, project_json, project_script, store_open, store_save, store_runs, describe_physics, list_physics, list_commands, get_guide.
118 / 118
ACCESS:
Command Access Category Summary & Schema Inspect
add_absorbing_layer edit geometry & meshing
Add an outward absorbing layer
add_box edit geometry & meshing
Box
add_chip_stack edit geometry & meshing
Add a 3D chip dielectric stack
add_circle edit geometry & meshing
Circle
add_condition edit physics & materials
Add a boundary or domain condition
add_cone edit geometry & meshing
Cone frustum
add_cut edit geometry & meshing
Cut by a plane
add_cylinder edit geometry & meshing
Cylinder
add_difference edit geometry & meshing
Difference
add_ellipse edit geometry & meshing
Ellipse
add_extrude edit geometry & meshing
Extrude
add_intersect edit geometry & meshing
Intersection
add_material edit physics & materials
Add a material to the project
add_overlay edit geometry & meshing
Regions (overlay)
add_pattern edit geometry & meshing
Pattern
add_periodic edit geometry & meshing
Periodic pair
add_physics edit physics & materials
Add a physics to the project
add_pml edit geometry & meshing
Absorbing layers
add_pml_conditions edit physics & materials
Add the absorbing-layer conditions
add_polygon edit geometry & meshing
Polygon
add_polygons edit geometry & meshing
Polygon batch
add_rect edit geometry & meshing
Rectangle
add_revolve edit geometry & meshing
Revolve
add_rounded_rect edit geometry & meshing
Rounded rectangle
add_sheet edit geometry & meshing
2D sheet or conformal slab in 3D
add_size edit geometry & meshing
Mesh size
add_sphere edit geometry & meshing
Sphere
add_tag edit geometry & meshing
Tag
add_torus edit geometry & meshing
Torus
add_transform edit geometry & meshing
Transform
add_union edit geometry & meshing
Union
analyse read analyses & fields
Analyse a result
bcs_surface_impedance read physics & materials
BCS thin-film surface impedance
check_project read projects & storage
Check the project
confinement read analyses & fields
Fraction of a field in a region
convergence_check expensive solving & sweeps
Check mesh convergence
describe_material read physics & materials
Describe a material
describe_physics read physics & materials
Describe a physics
eme_sweep read solving & sweeps
Run an analytical EME sweep
evaluate_material read physics & materials
Evaluate a material at temperature, frequency and wavelength
export_results expensive projects & storage
Write the results to an HDF5 file
extremum read analyses & fields
Largest or smallest value of an expression
fetch_material expensive physics & materials
Download a material from an open database
field read analyses & fields
A handle to a field
field_op read analyses & fields
Arithmetic on handles
figure read analyses & fields
Draw the modes or 3D fields of a result
geometry_names read geometry & meshing
Evaluate the geometry and list its names
get_guide read discovery & reference
Read a nyx guide
import_gds edit geometry & meshing
Import GDSII conductive sheets
import_material edit physics & materials
Import an external material record
integrate read analyses & fields
Integrate an expression over a region
job_cancel expensive jobs & queue
Cancel a job
job_list read jobs & queue
List the jobs
job_status read jobs & queue
Status of a job
job_wait expensive jobs & queue
Wait for a job
line_cut read analyses & fields
Values of an expression along a line
list_analyses read analyses & fields
List the analyses
list_commands read discovery & reference
List the commands
list_features read discovery & reference
List the features
list_materials read physics & materials
List the materials
list_operations read geometry & meshing
List the geometry operations
list_physics read physics & materials
List the physics of this build
list_remote_materials read physics & materials
List downloadable remote materials
mesh_build expensive geometry & meshing
Mesh the geometry
open_results edit projects & storage
Open an HDF5 results file
optimize_run expensive solving & sweeps
Run gradient-based shape, material, or topology optimization
overlap read analyses & fields
Overlap of two fields
pml_diagnostics read geometry & meshing
Absorbing-layer mesh and stability diagnostics
poll_jobs read jobs & queue
Apply finished jobs
probe read analyses & fields
Value of an expression at points
project_info read projects & storage
Project summary
project_json read projects & storage
Project as JSON
project_load edit projects & storage
Load a project from JSON
project_new edit projects & storage
New project
project_open edit projects & storage
Open a project file
project_save expensive projects & storage
Save the project to a file
project_script read projects & storage
Project as a script
queue_cancel expensive jobs & queue
Cancel a queued or running job
queue_get read jobs & queue
One job of the queue
queue_hold expensive jobs & queue
Hold a queued job
queue_list read jobs & queue
List the queue
queue_pause expensive jobs & queue
Pause the queue
queue_release expensive jobs & queue
Release a held job
queue_resume expensive jobs & queue
Resume the queue
queue_set_priority expensive jobs & queue
Change the priority of a queued job
queue_submit expensive jobs & queue
Submit work to the queue
queue_wait expensive jobs & queue
Wait for a job, at most a while
remove_condition edit physics & materials
Remove a condition
remove_feature edit geometry & meshing
Remove a feature
remove_material edit physics & materials
Remove a project material
remove_param edit geometry & meshing
Remove a model parameter
remove_physics edit physics & materials
Remove a physics from the project
rename_feature edit geometry & meshing
Rename a feature
result_field read analyses & fields
Read a field
result_info read analyses & fields
Describe the results
results_file_info read projects & storage
Describe an HDF5 results file
search_remote_materials read physics & materials
Search curated and live open material databases
sensitivity_run expensive solving & sweeps
Compute discrete adjoint sensitivities
set_active edit physics & materials
Set the active physics
set_coupled_loop edit physics & materials
Configure two-way Anderson coupled loop
set_geometry edit geometry & meshing
Replace the geometry
set_material edit physics & materials
Assign a material to a region
set_mesh edit geometry & meshing
Set the mesh settings
set_param edit geometry & meshing
Set a model parameter
set_physics_params edit physics & materials
Set the options of a physics
set_problem edit physics & materials
Replace the problem of a physics
set_study edit physics & materials
Set the study of a physics
solve_run expensive solving & sweeps
Solve
store_open edit projects & storage
Open a workflow
store_runs read projects & storage
Run table
store_save expensive projects & storage
Save into a workspace
suppress_feature edit geometry & meshing
Suppress or restore a feature
sweep_cancel expensive solving & sweeps
Cancel the points of a sweep that have not finished
sweep_run expensive solving & sweeps
Run a sweep: one recorded run per point
sweep_table read solving & sweeps
The table of a sweep
tag_feature edit geometry & meshing
Tag a feature
update_feature edit geometry & meshing
Change a feature
vvuq_export expensive analyses & fields
Export canonical VVUQ provenance and error-budget report