Nimbus BCI
v0.14.21BCI/EEG toolkit: public MOABB/BNCI datasets, pipeline build/validate, hosted training, BIDS export.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
account.whoami Who Am I
Who you are authenticated as: account email, plan (isPro / pioneer), this month's free-run quota, and — with a hosted token — the token name and days until it expires. Call this first when setup guidance appears or to check which credential a session uses. In anonymous Local Free mode there is no account: the response says so (mode/tier) instead of demanding a login.
catalog.nodes List Pipeline Nodes
List Nimbus pipeline node types (data, preprocessing, features, models...). Use catalog.node_schema(node_type) for one node's full config schema and ports.
| Parameter | Type | Description |
|---|---|---|
category | Optional filter by category id — e.g. "data", "preprocessing", "feature", "model" (singular ids; plurals such as "models"/"features" are accepted). An unknown category is an error that lists the val… |
catalog.node_schema Node Config Schema
Full config JSON schema + input/output ports for one node type.
| Parameter | Type | Description |
|---|---|---|
node_type * | string | Node id from catalog.nodes (e.g. "csp", "nimbus_lda"). |
catalog.templates List Pipeline Templates
List built-in starter pipelines (MI/P300/SSVEP...). catalog.template(id) returns the graph. Each row carries ``datasetId`` (catalog id, e.g. "BNCI2014_001" — the id catalog.leaderboard and catalog.datasets use) and ``paradigm`` when the template loads a public dataset.
| Parameter | Type | Description |
|---|---|---|
dataset | Only templates on this dataset id (e.g. "BNCI2014_001"); case-insensitive. | |
paradigm | Only templates with this paradigm (e.g. "motor_imagery", "p300", "ssvep"). |
catalog.template Get Pipeline Template
Full template incl. the 'train' execGraph needed by execution.run/pipeline.validate.
| Parameter | Type | Description |
|---|---|---|
template_id * | string | Template id from catalog.templates (e.g. "mi_csp_lda"). |
catalog.datasets List Datasets
Curated public EEG datasets (MOABB packs) available to pipelines.
| Parameter | Type | Description |
|---|---|---|
only_on_disk | boolean | Only return datasets whose data packs are present on this backend (True by default; False also lists known-but-missing sets). |
catalog.leaderboard Leaderboard
Public benchmark leaderboard: pipeline rankings per dataset. Two tracks: the top-level ``within_session`` block (curated suite pipelines) and ``crossSubject`` (leave-one-subject-out — curated pipelines plus BYO ``python_model`` submissions; BYO rows carry ``kind: "byo"`` and an ``owner`` name). Within each dataset, ``rows`` sort desc by ``meanAccuracyPct`` (95% CI in ``ciLoPct``/``ciHiPct``). ``packFingerprint`` identifies the exact dataset pack behind the scores; ``updated`` marks each dataset's most recent run. The ``pretrainedFewTrial`` efficiency track means: accuracy at a protocol-fixe…
| Parameter | Type | Description |
|---|---|---|
dataset_id | Optional dataset id. When set, every track is filtered to that dataset. Omit it for the full board. |
leaderboard.submit Submit to Leaderboard
Submit a BYO python_model to a leaderboard track for server-side scoring. Nimbus scores it server-side under the track's fixed protocol — you submit code, never results. Poll ``leaderboard.status`` with the returned ``submissionId``; scoring takes minutes (classical) to tens of minutes (deep). Requirements must be plain PyPI names/specs (max 20, no URLs). Identical code resubmission is idempotent per track (``deduplicated: true``). Verification contract (tier model X10): ``verification="verified"`` (default) is the server-side-scored submission above — on the hosted backend it is Pro-onl…
| Parameter | Type | Description |
|---|---|---|
dataset_id * | string | A dataset id from catalog.leaderboard ``submittableDatasets`` (e.g. "BNCI2014_001"). A dataset can appear under crossSubject and still be closed for submission (BNCI2014_008 is scored there and is not… |
name * | string | Display name on the board (<=100 chars). |
backbone_kind | Checkpoint family for the BYO backbone lane — one of the zoo's supported kinds (e.g. "cbramod", "labram"). | |
backbone_license | License declared for the backbone checkpoint. | |
backbone_repo | HF 'org/name' repo id for the BYO backbone lane. | |
backbone_revision | Full 40-char commit SHA pinning the backbone. | |
class_name | Contract class to instantiate; omit to auto-detect. | |
code | Python source defining a class with fit(X, y, info) and predict(X) (<=256KB; validate first with python.validate). Required unless backbone_repo is set. | |
requirements | Optional PyPI requirements (e.g. ["sklearn>=1.4"]). | |
track | string | "cross_subject" (default — full-data leave-one-subject-out, seed 42) or "pretrained_few_trial" (efficiency track: LOSO with a protocol-fixed 100-trials-per-subject cap; code that imports torch must… |
verification | string | "verified" (default; server-side scored, Pro on the hosted backend) or "unverified_local" (Account-Free locally-computed lane; see the tool description for its current backend status). |
leaderboard.status Leaderboard Submission Status
Fetch one of your leaderboard submissions (owner-only). Returns status (queued | scoring | done | failed), metrics when done (meanAccuracyPct + CI, same shape as leaderboard rows), or the error that failed it.
| Parameter | Type | Description |
|---|---|---|
submission_id * | string | The submissionId returned by leaderboard.submit. |
leaderboard.mine My Leaderboard Submissions
List your leaderboard submissions (newest first), all datasets.
pipeline.validate Validate Pipeline
Validate a pipeline graph before running. ExecGraphSnapshot: {nodes: [{id, type, config}], connections: [{from, to}]}. Build it from catalog.template(id).train or from scratch using catalog.nodes().
| Parameter | Type | Description |
|---|---|---|
train_graph * | object | The graph to validate ({nodes, connections}). |
pipeline.validate_node Validate Node Config
Validate one node's config (schema + semantic checks). Catches the same value errors as pipeline.validate for a single node (inverted bandpass, CSP components vs channel count when dataset is set).
| Parameter | Type | Description |
|---|---|---|
config * | object | The node's config object to check. |
node_type * | string | Node type id from catalog.nodes (e.g. "csp", "bandpass_filter"). |
dataset | Optional MOABB pack id (e.g. "BNCI2014_001") so CSP/Nyquist checks can use channel count and sampling rate. Omitted → those context checks are skipped; inverted-band checks still run. |
execution.run Run Pipeline
Start a pipeline run (NON-BLOCKING). Returns executionId — poll with execution.get() until status is completed/failed, then execution.results(). If an identical graph is already running for you, the run still starts but the response carries a ``warning`` + ``duplicateOf`` ids (cancel one with execution.cancel to avoid paying twice). The server runs a limited number of executions at once (3 by default); when all slots are busy the call fails immediately with 429 nimbus.execution.queue_full and a retryAfter (seconds) — wait, then retry.
| Parameter | Type | Description |
|---|---|---|
train_graph * | object | Pipeline graph {nodes: [{id, type, config}], connections: [{from, to}]} as built by catalog.template/pipeline.validate. |
description | Optional longer description of the experiment. | |
layout | Optional canvas positions {nodes: {id: {x, y}}}; a deterministic grid is synthesized when omitted. | |
name | Display name for the run (shown in the Runs list). | |
subject | Optional dataset subject code (e.g. "S01") recorded with the run. |
execution.cancel Cancel Run
Cancel a running execution.
| Parameter | Type | Description |
|---|---|---|
execution_id * | string | The run to terminate (from execution.run/execution.list). |
execution.delete Delete Run
Permanently delete one of your finished runs (completed/failed/cancelled) with its results. Running runs must be cancelled first (409 nimbus.execution.delete_not_terminal). Owner only.
| Parameter | Type | Description |
|---|---|---|
execution_id * | string | The run to delete (from execution.run/execution.list). |
confirm | boolean | MUST be true to delete — the explicit user go-ahead. |
execution.get Get Run
Execution status summary (status: running/completed/failed/cancelled). Summary fields: ``dataset`` is the human-readable display label (e.g. "BCIIV2a"); ``datasetId`` is the catalog id (e.g. "BNCI2014_001") accepted by other tools (data.inspect_dataset, public_data.dataset). ``title`` is the run name shown in Studio.
| Parameter | Type | Description |
|---|---|---|
execution_id * | string | The run to check (from execution.run/execution.list). |
execution.list List Runs
Recent executions. Optional status filter (running/completed/failed/cancelled). Per-run fields: ``dataset`` is the human-readable display label (e.g. "BCIIV2a"); ``datasetId`` is the catalog id (e.g. "BNCI2014_001") accepted by other tools (data.inspect_dataset, public_data.dataset). ``title`` is the run name shown in Studio.
| Parameter | Type | Description |
|---|---|---|
limit | integer | Maximum number of runs to return (default 20). |
status | Filter by run status: running/completed/failed/cancelled. |
execution.results Run Results
Metrics for a completed run. Trimmed by default (accuracy, kappa, ITR, confusion matrix, per-class); full=True returns the complete result object.
| Parameter | Type | Description |
|---|---|---|
execution_id * | string | The completed run to fetch metrics for. |
full | boolean | Return the backend's complete result object (all fields). |
calibration.start Start Calibration
Start a guided subject calibration session (NON-BLOCKING; confirm-gated — the device goes on a human's head). The Nimbus Studio app shows the cues on its calibration dashboard automatically; poll calibration.status. Requires a Pro plan (hosted token or Pro session): calibration nodes and custom-data training are gated by the freemium node policy; local X-MCP-Key principals pass only when the desktop app flags the signed-in Pro session (MCP_LOCAL_IS_PRO).
| Parameter | Type | Description |
|---|---|---|
classes | Override class list [{id,label,cue}] (MI default: left/right hand). | |
confirm | boolean | MUST be true — explicit user go-ahead for a session on their head. |
connection_type | Device selector when several exist (e.g. serial vs wifi). | |
device_type | Device id from device.list (omit → template default synthetic). | |
ip_address | Device IP for network/wifi devices. | |
ip_port | Port for network devices. | |
mac_address | Bluetooth MAC (BT devices). | |
name | Display name recorded on the execution. | |
paradigm | string | mi | p300 | sart | target_hit. |
port | Serial/COM port for wired devices. | |
serial_number | Device serial (some BLE stacks). | |
source_id | LSL source id. | |
stream_name | LSL stream name (LSL devices). | |
trials_per_class | Override the template's trial count (minimum 5). |
calibration.status Calibration Status
Live snapshot of a calibration session (phase, current trial, progress, paused). Once complete, carries the recorded upload — call calibration.train to turn it into the subject's own classifier.
| Parameter | Type | Description |
|---|---|---|
execution_id * | string | The calibration run to inspect (from calibration.start). |
calibration.pause Pause Calibration
Pause a running calibration between trials (cues hold; resume anytime).
| Parameter | Type | Description |
|---|---|---|
execution_id * | string | The calibration run to pause. |
calibration.resume Resume Calibration
Resume a paused calibration session.
| Parameter | Type | Description |
|---|---|---|
execution_id * | string | The calibration run to resume. |
calibration.train Train Calibration Model
Train the subject's own classifier from a COMPLETED calibration session (NON-BLOCKING). Fetches the recorded upload, wires it into a train pipeline as a custom_data source, and starts the run. Requires a Pro plan (custom_data training is freemium-gated). The calibrate→train handoff resolves on every backend, desktop-local included; only recordings made before the desktop execution-linkage build resolve no upload — rerun calibration.start for those.
| Parameter | Type | Description |
|---|---|---|
execution_id * | string | The COMPLETED calibration run (from calibration.start). |
name | Display name recorded on the training run. | |
paradigm | string | Paradigm of the recording (mi | p300 | sart | target_hit); mi and p300 have default train templates. |
template_id | Train template to use (e.g. from catalog.templates); required for sart/target_hit (mi defaults to mi_headband_csp_lda, p300 to p300_hardware_xdawn_lda). | |
train_graph | Explicit train graph instead of a template; its first data node (custom_data/public_data) is rewired onto the recording. |
experiment.run Run Experiment
Run 1-25 pipelines as ONE paced experiment (NON-BLOCKING). Returns an experimentId immediately; a background thread submits at most 2 runs at a time (min(max_concurrent, 2)), retries queue-full up to 3 times per run, and polls each execution to completion. Poll experiment.get() for per-run status and, once finished, aggregated metrics. PORTABILITY: the experiment record is written through to the Nimbus server under your account (at start and at completion), so experiment.get works from ANY entry point — local stdio, hosted gateway, another machine — signed in with the same account/token.…
| Parameter | Type | Description |
|---|---|---|
runs * | array | 1-25 entries, each {name: str, train_graph: {nodes, connections}} (same graph shape as execution.run's train_graph). |
max_concurrent | integer | Parallel submissions cap, clamped to 1-2 (default 2). |
experiment.delete Delete Experiment
Delete one of your experiment records (server + this machine's local cache). Its individual runs are kept — delete them with execution.delete. A still-running experiment cannot be deleted.
| Parameter | Type | Description |
|---|---|---|
experiment_id * | string | The experiment to delete (from experiment.run). |
confirm | boolean | MUST be true to delete — the explicit user go-ahead. |
experiment.get Get Experiment
Experiment snapshot: status (running/completed/failed), per-run rows ({name, executionId, status, error?, metrics?, evaluationKind?}) and, once finished, aggregates over completed runs only: per-metric {mean, std, best, n}, plus ``pooledExecutionIds`` / ``pooledRunNames`` / ``kindBreakdown`` (per-subject vs LOSO etc. — each row has kind, n, mean, std, executionIds, runNames; #470). Pooled headline means are unchanged; kindBreakdown labels what was pooled. std is population; None below 2 values. kindBreakdown is always present when aggregates exist (including single-kind experiments). PORTAB…
| Parameter | Type | Description |
|---|---|---|
experiment_id * | string | The experiment to inspect (from experiment.run). |
execution.artifacts List Run Artifacts
Trained artifacts (models/filters, e.g. *.pkl) saved by an execution.
| Parameter | Type | Description |
|---|---|---|
execution_id * | string | Run whose artifacts to list. |
execution.download_artifact Download Run Artifact
Download one artifact file. Local/stdio: saved to NIMBUS_EXPORT_DIR/executions/<id>/ and its path returned. Hosted gateway: returned inline as ``contentBase64`` (up to 1 MB of base64); larger files point to Nimbus Studio. Nothing is written on the gateway.
| Parameter | Type | Description |
|---|---|---|
artifact_name * | string | File name from execution.artifacts (e.g. "nimbus_lda.pkl"). |
execution_id * | string | Run that produced the artifact. |
pipeline.export Export Pipeline
Export the pipeline as a standalone runnable Python bundle (zip). Local/stdio: the zip is saved under NIMBUS_EXPORT_DIR/exports and its path returned. Hosted gateway: the zip is returned inline as ``contentBase64`` (up to 1 MB of base64). UI-only nodes (interactive_application) are left out and listed in ``exportNotes``.
| Parameter | Type | Description |
|---|---|---|
train_graph * | object | Pipeline graph {nodes, connections} to export. |
name | Optional name recorded inside the bundle. |
bids.export_dataset Export Dataset as BIDS
Export a Nimbus dataset as a BIDS-layout zip (local: saved to NIMBUS_EXPORT_DIR/bids/; hosted gateway: inline ``contentBase64``, up to 1 MB). Continuous sources (EDF/BDF uploads, stream recordings) export as BIDS-raw (EDF byte-passthrough; recordings converted HDF5→EDF with events.tsv). Epoched sources (MOABB packs, trial-table uploads) export as BIDS-derivatives (data passthrough + descriptive trial_index/label/session/run events — no fabricated onsets). The zip embeds nimbus_export_manifest.json with sha256s.
| Parameter | Type | Description |
|---|---|---|
dataset * | string | Dataset id — a MOABB pack id (e.g. "BNCI2014_001"), an upload path (as returned by data.upload), or a recording name. Auto-detected. |
kind | Optional explicit source kind: pack|upload|recording (default auto). | |
subjects | Pack exports only — subject filter (e.g. ["S01", "S03"]) to bound zip size; default exports all installed subjects. |
bids.export_execution Export Run as BIDS
Export an execution's results as a BIDS-derivative zip (metrics.json, per-subject participants.tsv, protocol.json, full pipeline_snapshot.json, predictions.tsv when stored, provenance/execution.json). Local: saved to NIMBUS_EXPORT_DIR/bids/. Hosted gateway: inline ``contentBase64`` (up to 1 MB of base64); larger zips point to Nimbus Studio.
| Parameter | Type | Description |
|---|---|---|
execution_id * | string | Run whose results to export (from execution.run). |
device.list List EEG Devices
EEG devices supported by this backend (OpenBCI, Muse, BrainBit, LSL, PiEEG...).
device.test Test EEG Device
Test a device connection WITHOUT starting a stream (safe, no confirm needed).
| Parameter | Type | Description |
|---|---|---|
device_type * | string | Device id from device.list (e.g. "brainbit", "muse"). |
connection_type | Device-specific selector when several exist (e.g. serial vs wifi). | |
ip_address | Device IP for network/wifi devices. | |
ip_port | Port for network devices. | |
mac_address | Bluetooth MAC (BT devices). | |
port | Serial/COM port for wired devices. | |
serial_number | Device serial (some BLE stacks). | |
source_id | LSL source id. | |
stream_name | LSL stream name (LSL devices). |
stream.start Start EEG Stream
Connect an EEG device and START a live streaming session on the user's head. Requires confirm=True; call device.test first. Track with stream.status(). Idle watchdog: if no stream.status()/stream.telemetry() poll happens for idle_timeout_sec (default 900), the session is stopped and the device disconnected automatically — an abandoned stream never keeps running on the user's head. Any poll resets the timer; idle_timeout_sec=0 disables the watchdog.
| Parameter | Type | Description |
|---|---|---|
device_type * | string | Device id from device.list (e.g. "brainbit"). |
chunk_size | integer | Samples per streamed chunk (default 125). |
confirm | boolean | MUST be true to start — the explicit user go-ahead for a live session on their head; anything else is refused with zero requests. |
connection_type | Device-specific selector (e.g. serial vs wifi). | |
idle_timeout_sec | integer | Watchdog: stop+disconnect after this many seconds without a status poll (default 900; 0 disables). |
ip_address | Device IP for network/wifi devices. | |
ip_port | Port for network devices. | |
mac_address | Bluetooth MAC (BT devices). | |
n_channels | integer | Channel count to open (default 8). |
port | Serial/COM port for wired devices. | |
serial_number | Device serial (some BLE stacks). | |
session_id | Optional existing session to resume/reuse. | |
source_id | LSL source id. | |
stream_name | LSL stream name (LSL devices). |
stream.status EEG Stream Status
Live snapshot of a streaming session (running, deviceConnected). Polling this also feeds the idle watchdog: each call resets the session's idle timer (see stream.start's idle_timeout_sec).
| Parameter | Type | Description |
|---|---|---|
session_id * | string | The streaming session to inspect. |
stream.stop Stop EEG Stream
Stop a streaming session and disconnect the device (always safe to call). Also removes the session from the idle watchdog so it cannot fire after an explicit stop.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | The streaming session to stop. |
plots.confusion Plot Confusion Matrix
Confusion-matrix figure for one execution: heatmap with trial counts + per-class accuracy bars, rendered as a PNG the assistant can see. Use it right after execution.results to eyeball WHICH classes are confused, not just the accuracy number.
| Parameter | Type | Description |
|---|---|---|
execution_id * | string | Run to plot (from execution.run / execution.results). |
matrix | string | "eval" (held-out, default) or "train" (fit-set / cross-validation). CV and evaluation-plan runs often have no eval matrix — use "train". |
save | boolean | Local/stdio: also write the PNG to NIMBUS_EXPORT_DIR/plots/ and return its path. Ignored on the hosted gateway (the image is returned inline). |
plots.dataset Plot Dataset
Figure over an EEG data source — the visual companion to data.inspect_dataset. kind=psd (Welch, channel mean bold), kind=bandpower (channel × band dB heatmap), kind=topomap (band-power scalp map), kind=spectrogram (time-frequency for one channel). Sources are the same ones inspect uses: MOABB packs, uploads, local files.
| Parameter | Type | Description |
|---|---|---|
kind * | string | Figure type: psd | topomap | bandpower | spectrogram. |
source * | string | "dataset" (MOABB pack), "upload" (path from data.upload), or "local" (absolute path, local backend only). |
band | string | Band for kind=topomap: delta|theta|alpha|beta|gamma (default alpha). |
channel_idx | integer | 0-based channel for kind=spectrogram (default 0). |
dataset | MOABB dataset id, e.g. "BNCI2014_001" (source=dataset). | |
mode | string | Pack split to load: training | evaluation | all (source=dataset). |
path | Upload path (source=upload) or absolute local path (source=local). | |
save | boolean | Local/stdio: also write the PNG to NIMBUS_EXPORT_DIR/plots/ and return its path. Ignored on the hosted gateway (the image is returned inline). |
subject | Subject id, e.g. "S01" (source=dataset). |
plots.erp Plot ERP
ERP butterfly figure from epoched data: one subplot per class, all channel means (thin) + across-channel mean (bold), time-locked to the trial event. Shows whether class-conditioned evoked structure exists BEFORE training anything.
| Parameter | Type | Description |
|---|---|---|
source * | string | "dataset" (MOABB pack), "upload" (path from data.upload), or "local" (absolute path, local backend only). |
dataset | MOABB dataset id, e.g. "BNCI2014_001" (source=dataset). | |
max_channels | integer | Channels drawn per class subplot (default 16, max 64). |
mode | string | Pack split to load: training | evaluation | all (source=dataset). |
path | Upload path (source=upload) or absolute local path (source=local). | |
save | boolean | Local/stdio: also write the PNG to NIMBUS_EXPORT_DIR/plots/ and return its path. Ignored on the hosted gateway (the image is returned inline). |
subject | Subject id, e.g. "S01" (source=dataset). |
plots.leaderboard Plot Leaderboard
Leaderboard bar chart for one dataset: accuracy with 95% CI whiskers, best first; BYO python_model submissions highlighted in a distinct color. The visual companion to catalog.leaderboard. On the pretrained_few_trial track the figure also includes the classical LOSO baseline as a muted side panel for comparison.
| Parameter | Type | Description |
|---|---|---|
dataset_id * | string | Dataset to chart, e.g. "BNCI2014_001" (see catalog.leaderboard). |
save | boolean | Local/stdio: also write the PNG to NIMBUS_EXPORT_DIR/plots/ and return its path. Ignored on the hosted gateway (the image is returned inline). |
track | string | "within_session" (curated 5-fold), "crossSubject" (LOSO, curated + BYO submissions), or "pretrained_few_trial" (the efficiency track: LOSO at the protocol's fixed per-subject trial budget — the figu… |
stream.telemetry EEG Stream Telemetry
Live snapshot of a streaming session: latest prediction + recent window, signal quality (meanChannelQuality, snrDb, artifactProbability), indicators, running stats. Poll this while a session runs. Works with OR without a deployed model: modelless hardware streams (no classifier) report live signal quality + focus/relaxation band-power indicators with latestPrediction null; deployed sessions additionally carry predictions and confidence stats. Expect low confidence during filter/ASR warm-up (first seconds); quality < 0.5 or high artifactProbability means the signal is poor. 404 => session not a…
| Parameter | Type | Description |
|---|---|---|
session_id * | string | The streaming session to read telemetry for. |
window | integer | How many recent predictions/chunks to include (default 50). |
data.upload Upload Data File
Upload an EEG file (.edf/.bdf/.mat/.csv/.txt/.tsv/.h5/.hdf5, <=500MB) to the backend and get the registered path for a custom_data node. sampling_rate (Hz, e.g. 250.0) is REQUIRED for plain CSV/TSV/TXT files without embedded metadata — uploads without it are rejected (no silent 250 Hz assumption). format overrides extension-based detection (auto, mat, csv, tsv, txt, edf, bdf, h5, hdf5).
| Parameter | Type | Description |
|---|---|---|
file_path * | string | Local file to upload (.edf/.bdf/.mat/.csv/.txt/.tsv/.h5/.hdf5, <=500MB). |
dataset_name | Optional label for the uploaded dataset. | |
format | Override extension-based detection (auto|mat|csv|tsv|txt|edf|bdf|h5|hdf5). | |
sampling_rate | Hz for headerless CSV/TSV/TXT (REQUIRED there, e.g. 250.0). |
data.delete_upload Delete Upload
Delete an uploaded file from your account (disk + registry). Requires confirm=True. Pass the path returned by data.upload (file.path). Only your own uploads can be deleted; missing paths return not-found.
| Parameter | Type | Description |
|---|---|---|
path * | string | Upload path from data.upload (e.g. user_…/file.csv). |
confirm | boolean | MUST be true to delete — the explicit user go-ahead. |
data.inspect_dataset Inspect Dataset
Exploratory summary of a public EEG dataset (MOABB pack): channels, sampling rate, trial/class balance, per-channel µV stats, band powers and a PSD overview. Look at the data BEFORE building pipelines: class balance drives stratification choices (imbalanced classes skew accuracy), and flatlined channels mean a montage/reference problem worth fixing first. subject defaults to the dataset's catalog ``defaultSubject`` (see catalog.datasets), e.g. "S01"; a comma-list like "S01,S03" loads a cohort. mode: training | evaluation | all. Units note: values are ASSUMED volts by the loader — a µV-nat…
| Parameter | Type | Description |
|---|---|---|
dataset * | string | Dataset id from catalog.datasets (e.g. "BNCI2014_001"). |
mode | string | Which split to summarize — training | evaluation | all. |
subject | Subject code ("S01") or comma-list cohort ("S01,S03"); defaults to the catalog defaultSubject. |
data.inspect_file Inspect Data File
Exploratory summary of an EEG file (.edf/.bdf/.mat/.csv/.tsv/.txt/.h5): channels, sampling rate, trial/class balance, per-channel µV stats, band powers and a PSD overview. The path shape picks the source: ABSOLUTE path → read the file from disk (only on a LOCAL backend: desktop app / MCP local mode — no upload needed); RELATIVE path (the one data.upload returns) → describe the uploaded file, which works on ANY backend (hosted or local). Look at the data BEFORE building pipelines: class balance drives stratification choices, and flatlined channels mean a montage/reference problem worth…
| Parameter | Type | Description |
|---|---|---|
path * | string | ABSOLUTE filesystem path (`~` is expanded; local backends only) or the RELATIVE upload path returned by data.upload (works on any backend). |
sampling_rate | Hz for CSV/TSV/TXT files (REQUIRED there, e.g. 250.0). |
project.create Create Project
Create a project (container for one pipeline document). Returns projectId.
| Parameter | Type | Description |
|---|---|---|
name * | string | Project display name (e.g. "MI CSP-LDA sweep"). |
description | Optional longer description shown in the studio. |
project.list List Projects
List projects owned by the current principal (agent work included).
project.save Save Project Pipeline
Save a pipeline graph into a project (visible on the studio canvas). Always pass expected_revision from the last project.load (or a prior save/create response). When it does not match the current server revision, the save fails with a conflict — it does NOT silently overwrite concurrent edits. Omitting it is rejected so a stale single-writer convenience path cannot wipe another client's work.
| Parameter | Type | Description |
|---|---|---|
expected_revision * | integer | Optimistic-concurrency base from project.load / a prior save. Required. |
project_id * | string | Target project (from project.create/project.list). |
train_graph * | object | Pipeline graph {nodes, connections} to persist. |
name | Optional pipeline name stored on the document. | |
subject | Optional dataset subject code (e.g. "S01") for this pipeline. |
project.load Load Project
Load a project's saved pipeline (train graph + meta) for editing/re-running.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Project whose pipeline document to load. |
project.rename Rename Project
Rename a project you own (max 200 characters).
| Parameter | Type | Description |
|---|---|---|
name * | string | New display name. |
project_id * | string | Project to rename (from project.create/project.list). |
project.delete Delete Project
Delete a project (and its saved pipeline document) from the studio workspace. Requires confirm=True: this removes the project from the user's project list. Executions already run from it are not affected. Find ids with project.list.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | Project to delete (from project.create/project.list). |
confirm | boolean | MUST be true to delete — the explicit user go-ahead. |
protocol.validate Validate Protocol
Validate a neurofeedback protocol document WITHOUT saving it. Returns {valid: true, spec} on success, or {valid: false, errors: [...]} with the per-violation list (loc/msg) when the document is invalid — the verdict is data, never an exception.
| Parameter | Type | Description |
|---|---|---|
spec * | object | Wire-format protocol document (camelCase): id, name, indicator {name, transform}, armDefaults, blocks [{id, kind: assessment|training, durationSec, feedback?}], threshold, sessions, breakCriteria. |
protocol.save Save Protocol
Validate and persist the NEXT VERSION of a protocol document (confirm-gated: each call appends a version row; accidental calls clutter the version history). Edits create a new version — the assignment pins the version it runs.
| Parameter | Type | Description |
|---|---|---|
spec * | object | Wire-format protocol document (validate first to iterate). |
confirm | boolean | MUST be true to write. |
protocol.list List Protocols
Every saved protocol id at its latest version.
protocol.start_assignment Start Protocol Assignment
Enroll a subject and prepare their neurofeedback deploy session (confirm-gated — a session runs on a human). Creates the assignment (yoked sham arms REQUIRE yoked_donor_upload_id: a recorded simulated session's upload — mint one by running an active-arm session and data.upload-ing its recording), then persists the protocol graph as a deployable execution. Requires a Pro plan for LIVE hardware sessions; simulated-source sessions (the default template) are free. Graph source: execution_id reuses THAT run's stored graph (it must contain a protocol_session node; no device is pre-connected —…
| Parameter | Type | Description |
|---|---|---|
arm * | string | active | sham. |
protocol_id * | string | Saved protocol id (protocol.save). |
protocol_version * | integer | Immutable version the assignment pins. |
subject_label * | string | Subject identifier (e.g. "S01"). |
confirm | boolean | MUST be true — explicit go-ahead for a session on a human. |
execution_id | Optional completed execution whose stored graph carries a protocol_session node; default clones the template. | |
yoked_donor_upload_id | Donor recording upload (required when the arm's blocks resolve to yoked — the backend validates coverage). |
protocol.session_status Protocol Session Status
Live snapshot of a protocol deploy session: the scheduler block / session progress + threshold state (under ``protocol``) beside the telemetry window (recent indicators, quality, stats).
| Parameter | Type | Description |
|---|---|---|
session_id * | string | The deploy session to inspect (from start_assignment). |
window | integer | How many recent predictions to include (1-200, default 50). |
protocol.pause Pause Protocol Session
Pause a running protocol session (blocks freeze; the session and device stay alive — resume with protocol.resume). Simulated and playback sessions only while paused: no data is recorded.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | The deploy session to pause. |
protocol.resume Resume Protocol Session
Resume a paused protocol session (restarts the server-driven device loop). Live-hardware resume requires a Pro plan; simulated sessions are free. Pass the session's channel count (start_assignment reports it).
| Parameter | Type | Description |
|---|---|---|
session_id * | string | The deploy session to resume. |
chunk_size | integer | Samples per streamed chunk (default 125). |
n_channels | integer | Session channel count (the built-in template opens 4). |
protocol.stop Stop Protocol Session
Stop a protocol session (always safe to call): stops streaming, saves the block-annotated recording, advances the assignment when the scheduler reached its natural end, and disconnects the device (best-effort — a failed disconnect is reported, never raised).
| Parameter | Type | Description |
|---|---|---|
session_id * | string | The deploy session to stop. |
protocol.export_stats Export Protocol Stats
Paired pre/post analysis for one assignment's recorded sessions: per-block aggregates (descriptive + CSV), paired t / Wilcoxon / dz (per-statistic minimums: paired t and Cohen's dz need ≥ 3 completed sessions, Wilcoxon needs ≥ 5), specificity notes, the adaptive-threshold trajectory, and a pre/post figure (base64 PNG — render or save it to look at the effect). An assignment with no recordings yet returns the empty payload with a note, never an error.
| Parameter | Type | Description |
|---|---|---|
assignment_id * | string | The assignment to analyze (from start_assignment). |
python.validate Validate Python Model
Statically check a python_model script (BYO model class) without running it. Compiles the source and verifies the contract — a class with fit(X, y, info) and predict(X); optional predict_proba(X) unlocks confidence panels. Never executes the code, so it is safe against the hosted backend. Use it before execution.run to catch syntax errors, missing methods, or the wrong class name cheaply.
| Parameter | Type | Description |
|---|---|---|
code * | string | Python source of the model class (<=256KB UTF-8). |
class_name | Contract class to instantiate; omit to auto-detect the first class defining fit+predict. |
stats.grouped Grouped Statistics
Cluster-aware group statistics across executions. REQUIREMENT (read first): each execution must have been run with an evaluation plan that STORED per-SUBJECT accuracies for at least 3 subjects — e.g. leave-one-subject-out (LOSO) or grouped CV over >= 3 subjects. Session groups within one subject (multi-session single-subject runs) are refused with ``nimbus.stats.non_subject_groups`` — those are not independent subjects. A plain single-subject CV run with no subject/session grouping stores no group stats and fails with ``nimbus.stats.insufficient_groups``. HOW to get grouped stats: in the…
| Parameter | Type | Description |
|---|---|---|
execution_ids * | array | 1–25 executions (from execution.run) to pool. Runs without subject group stats are reported with nulls but do not fail the request — unless NONE qualifies (``nimbus.stats.insufficient_groups``) or… |
chance | Chance level in [0, 1]; default 1/nClasses per execution. |
foundation.compare Compare Foundation Backbones
Run every available pretrained backbone on YOUR data and see which wins — a ranked bar chart with CI whiskers, params, and wall time per backbone. Backbones that can't process your data (window size, channel count) are noted, not silently skipped. Each backbone embeds your trials frozen (the exact foundation_features preprocessing), a LDA is cross-validated on the embeddings. Returns a PNG image PLUS a JSON text block (and structuredContent.meta.results) with per-backbone accuracy, CI, embed dim, params, and time — pick the foundation_features backbone by measurement, not vibes.
| Parameter | Type | Description |
|---|---|---|
source * | string | "dataset" (MOABB pack), "upload" (path from data.upload), or "local" (absolute path, local backend only). |
dataset | MOABB dataset id, e.g. "BNCI2014_001" (source=dataset). | |
mode | string | Pack split to load: training | evaluation | all (source=dataset). |
path | Upload path (source=upload) or absolute local path (source=local). | |
subject | Subject id, e.g. "S01" (source=dataset). |