Skip to content

MCP Command Reference

The caliper-mcp server exposes every agent-enabled command in src/builder/commands/command_table.json as one Model Context Protocol tool. The script scripts/generate_mcp_reference.py generates this page directly from src/builder/commands/command_table.json. Continuous integration runs python scripts/generate_mcp_reference.py --check and fails when this page drifts from the command table. After any edit to src/builder/commands/command_table.cpp, run caliper_builder_command_table --write and then run python3 scripts/generate_mcp_reference.py --write.

Tool Mapping and Execution

Each command with agents: true becomes one MCP tool whose name replaces the first dot with an underscore. For example, panel.create becomes panel_create, while its MCP title keeps the dotted command name. The tool input schema matches the command args schema, and the structured output schema matches result. Commands that return png_base64 (capture_frame and panel_render) return MCP image/png content alongside the JSON metadata. The server marks a tool with readOnlyHint: true only when mutates is false, effect is not run, and the command is not app.launch. See MCP Server and Caliper API for transport, token, and approval rules.

Group Summary

The command table defines 97 commands across 28 groups: 95 MCP tools for agents and 2 session-only undo commands.

Group Prefix MCP Tools Effects
Application Commands app.* 3 change, read
Catalog Commands catalog.* 3 read
Data Store Commands data.* 2 change, read
Loader Commands loader.* 6 change, read
Spec Document Commands spec.* 5 change, edit, read
Source Commands source.* 3 edit
Panel Commands panel.* 5 edit, read
Layout Commands layout.* 3 edit
Preview Commands preview.* 4 edit, read
Workspace Applet Commands applet.* 3 change, read
Provenance Review Commands review.* 1 read
Frame Capture Commands capture.* 1 read
Spec Control Commands control.* 4 change, edit
State Variable Commands state.* 5 change, edit, read
Selection Commands selection.* 2 change, read
Scene Entity Commands entity.* 2 edit
Annotation Commands annotation.* 2 edit
Step Cursor Commands cursor.* 3 change, read
Camera Commands camera.* 3 change, edit, read
Run Control and Managed Run Commands run.* 9 read, run
Event Stream Commands events.* 1 read
GPU Program Commands program.* 5 edit, read
Piece Library Commands piece.* 7 change, read
Feature Dictionary Commands feature.* 3 read
Circuit Trace Commands trace.* 4 read, run
Activation Patch Commands patch.* 1 run
Model Intervention Commands intervene.* 4 read, run
History Commands history.* 1 read

Application Commands

Application commands inspect host versions, list applets, and switch the active applet.

MCP Tool Command Effect Flags Arguments Summary
app_info app.info read read-only None Describes the running Caliper app: its version, the ABI epoch its applets must be built for, the services it offers, and the versions of the SDK, libtorch and its interface libraries. It changes nothing.
app_applets app.applets read read-only, frame-thread None Lists the applets the app found, as caliper list shows them: each applet's manifest id, its version, its kind (library or spec), its folder, its status (READY, ACTIVE for the one open now, REFUSED, SHADOWED) and the reason when it cannot run. The id is what app.launch takes. It changes nothing.
app_launch app.launch change frame-thread id (string, required) Opens the page of one applet, as a click on its row on the app's landing screen does; an attached live session stays attached. The id is an applet's manifest id from app.applets. A compiled applet's page replaces the page shown at once. A dashboard of the workspace opens with an applet.open from your origin, and the page changes only when that has run: when it would replace the open spec's unsaved changes it waits for the person's approval, the status is PENDING_APPROVAL rather than ACTIVE, its note says how to check whether it opened, and if the person denies it nothing changes.

Catalog Commands

Catalog commands list, describe, and sample data sources across workspace stores and live feeds.

MCP Tool Command Effect Flags Arguments Summary
catalog_list catalog.list read read-only kind (enum), limit (integer), prefix (string) Lists the sources in the catalog: every table, tensor, live view, feed channel and metric that a spec can bind, with its schema, shape and rate. A source id is <kind>:<name>, such as table:run42_metrics or live:attn.weights; a spec source names it in its catalog field. Filter by kind or by the start of the name. It changes nothing.
catalog_describe catalog.describe read read-only id (string, required) Gives one catalog source in full: its kind, where it comes from, its columns and row count for a table, feed or metric, its dtype and shape for a tensor or live view, its rate, its size, whether it can run in the browser viewer, and any warnings. The id comes from catalog.list.
catalog_sample catalog.sample read read-only count (array), id (string, required), limit (integer), start (array) Shows a little of a source's data, to learn what it holds before binding it. A table, feed or metric gives up to limit rows (20 by default). A tensor or live view gives its statistics (min, max, mean, standard deviation and the count of non-finite values) and a box of its values, at most 64 per axis and 4096 in all, placed with start and count. The id comes from catalog.list. It changes nothing.

Data Store Commands

Data store commands run read-only SQL queries and import tabular files into the workspace store.

MCP Tool Command Effect Flags Arguments Summary
data_query data.query read read-only limit (integer), sql (string, required), timeout_ms (integer) Runs one read-only SQL SELECT, in DuckDB's dialect, over the workspace's tables, which are the table: sources of the catalog named without the table: prefix. It returns at most limit rows (1000 by default) and stops after timeout_ms (5000 by default). Use it to explore data or to try the SQL of a spec source. It changes nothing.
data_import data.import change mutates paths (array, required), run (boolean) Creates a loader for each file path given, choosing the reader from the file's extension (csv, tsv, parquet, json, jsonl, arrow, npy, npz, safetensors, hdf5, png, jpg, wav), and runs the new loaders unless run is false, so that the files' contents appear in the catalog as table: and tensor: sources. Paths are relative to the workspace; a path outside it is accepted only from the person's own drop or file dialog. Pickle files are refused. Undo deletes the loaders it created and their outputs.

Loader Commands

Loader commands manage and execute workspace file and Python data loaders.

MCP Tool Command Effect Flags Arguments Summary
loader_list loader.list read read-only None Lists the workspace's saved loaders. A loader is a saved recipe that turns files into catalog sources: a file or glob, a reader, and optional SQL or tensor transforms. Each has an id, which the other loader commands take. It changes nothing.
loader_describe loader.describe read read-only id (string, required) Gives one loader in full: its TOML recipe, its reader and input path, how its last run went and the catalog sources it made. The id comes from loader.list.
loader_create loader.create change mutates run (boolean), text (string, required) Saves a new loader from its TOML recipe, as loaders/<id>.loader.toml in the workspace, and runs it when run is true. The recipe holds caliper_loader = 0; a [loader] table with id and title; an [input] table with path (a file or glob relative to the workspace) and an optional reader; optional [reader] options; and one or more [[output]] tables, each with a name and an optional SQL SELECT over the relation input, or a tensor to select. It fails when a loader with that id exists. Undo deletes it.
loader_update loader.update change mutates, destructive id (string, required), run (boolean), text (string, required) Replaces the recipe of an existing loader with new TOML text, whose [loader] id must stay the same, and runs it when run is true. It overwrites the saved recipe, so an agent's call needs the person's approval. Undo restores the previous recipe; the tables the new recipe made stay until the loader runs again. The id comes from loader.list.
loader_run loader.run change mutates, destructive id (string, required) Runs a loader: reads its input files and rebuilds its outputs, which replaces the tables and tensors its previous run made. A Python loader runs as a separate process. This cannot be undone, and an agent's call needs the person's approval. The id comes from loader.list.
loader_delete loader.delete change mutates, destructive id (string, required), keep_outputs (boolean) Deletes a saved loader and, unless keep_outputs is true, the catalog sources it made. An agent's call needs the person's approval. Undo restores the recipe; its outputs come back when it runs again. The id comes from loader.list.

Spec Document Commands

Spec document commands create, open, read, replace, and validate the active spec document.

MCP Tool Command Effect Flags Arguments Summary
spec_new spec.new change mutates, frame-thread description (string), id (string, required), layout_locked (boolean), title (string) Starts a new, empty spec and makes it the open spec: the one the builder shows and that the source, panel and layout commands edit. A spec is the text that describes an applet built from data: its sources, its panels and their layout. The id names the applet, in lower case with digits, - and _. Undo returns to the spec that was open before.
spec_open spec.open change mutates, frame-thread path (string, required) Opens a spec file of the workspace as the open spec. The path is relative to the workspace and ends in .spec.toml, such as applets/attention-entropy/attention-entropy.spec.toml. To open a saved applet by its id, use applet.open. Undo returns to the spec that was open before, with its unsaved changes.
spec_get spec.get read read-only, frame-thread applet (string) Returns the open spec as its TOML text and as its canonical JSON form, with its applet id, the file it was saved to or opened from, and whether it has unsaved changes. With applet, it returns that saved spec applet's spec instead, read from its files without opening it. When no spec is open and no applet is named, it answers open false and nothing else, which is not an error: make one with spec.new or open one with spec.open or applet.open. It changes nothing.
spec_set_text spec.set_text edit mutates, frame-thread dry_run (boolean), text (string, required) Replaces the whole open spec with new TOML text after checking it; text with an error is refused, and the open spec stays as it was. Use spec.validate first to see every error. Undo restores the previous text. The result holds the change as a diff; with dry_run true the change is only checked and not applied.
spec_validate spec.validate read read-only, frame-thread text (string) Checks a spec and lists its errors and warnings, each with a code, a message and where it is. It checks the given text, or the open spec when no text is given. An invalid spec is reported in the result, not as an error. It changes nothing.

Source Commands

Source commands add, patch, and remove data sources and transform chains in the active spec.

MCP Tool Command Effect Flags Arguments Summary
source_add source.add edit mutates, frame-thread catalog (string), dry_run (boolean), from (string), history (integer), id (string, required), sql (string), transform (array) Adds a source to the open spec. A spec source gives data a name that panels bind. It has exactly one of catalog (a catalog source id from catalog.list, such as live:attn.weights), sql (one read-only SELECT over the workspace's tables) or from (the id of another source of this spec), and an optional list of tensor transforms (slice, reduce, normalise) for tensor-shaped data. Undo removes it. The result holds the change as a diff; with dry_run true the change is only checked and not applied.
source_patch source.patch edit mutates, frame-thread dry_run (boolean), id (string, required), patch (object, required) Changes a source of the open spec with a JSON merge patch (RFC 7386): the keys given replace the source's own, and a key set to null is removed. The id cannot change. The id comes from spec.get. Undo restores the source. The result holds the change as a diff; with dry_run true the change is only checked and not applied.
source_remove source.remove edit mutates, frame-thread dry_run (boolean), id (string, required) Removes a source from the open spec. A source that a panel binds, or that another source derives from, cannot be removed until they change. The id comes from spec.get. Undo restores it. The result holds the change as a diff; with dry_run true the change is only checked and not applied.

Panel Commands

Panel commands create, patch, remove, render, and read data from spec panels.

MCP Tool Command Effect Flags Arguments Summary
panel_create panel.create edit mutates, frame-thread annotation (array), bind (object), closable (boolean), dry_run (boolean), entity (array), id (string, required), options (object), place (object), primitive (enum, required), title (string) Adds a panel to the open spec. A panel draws one primitive from the sources it binds: series (lines), heatmap (a colour-mapped grid), points (a 2-D or 3-D cloud), histogram, table, image or text. bind maps each slot of the primitive to a spec source id, or to <source>.<column> for one column of a tabular source. place puts it beside, above, below or in tabs with another panel; without place, the panel goes to the right of the whole layout. Undo removes it. The result holds the change as a diff; with dry_run true the change is only checked and not applied.
panel_patch panel.patch edit mutates, frame-thread dry_run (boolean), id (string, required), patch (object, required) Changes a panel of the open spec with a JSON merge patch (RFC 7386) of its title, primitive, bindings and options: the keys given replace the panel's own, a key set to null is removed, and bind and options merge key by key. The id cannot change. The id comes from spec.get. Undo restores the panel. The result holds the change as a diff; with dry_run true the change is only checked and not applied.
panel_remove panel.remove edit mutates, frame-thread dry_run (boolean), id (string, required) Removes a panel from the open spec and from its layout. Refuses with panel.not_closable when the panel sets closable to false, and with layout.locked when the layout is locked. The id comes from spec.get. Undo restores it in its place. The result holds the change as a diff; with dry_run true the change is only checked and not applied.
panel_render panel.render read read-only, frame-thread, png-image height (integer), id (string, required), width (integer) Draws one panel of the open spec off screen and returns it as a PNG image, so that you can check what it looks like. width and height are in pixels, 800 by 500 by default. The id comes from spec.get. It changes nothing.
panel_data panel.data read read-only, frame-thread applet (string), known (string), panel (string, required) Returns the data of one panel as the browser viewer draws it: the panel's data after its sources' transforms, within the bounds of what a panel can show (long lines as a min/max envelope, large grids and clouds sampled at a stride, a histogram's bin counts, the first 1,000 rows of a table), with a version. Pass the version you have as known, and the answer is unchanged, with no data, until the panel's sources, the spec or the catalog change. It reads a saved spec applet with applet, else the open spec. It changes nothing.

Layout Commands

Layout commands place panels, set split trees and shares, and lock or unlock the layout.

MCP Tool Command Effect Flags Arguments Summary
layout_place layout.place edit mutates, frame-thread dry_run (boolean), panel (string, required), ratio (number), target (string, required), where (enum, required) Places a panel of the open spec next to another one, the target: beside puts it to the right, above and below above or below, tabbed in tabs with the target. ratio is the share of the space the placed panel gets, from 0.05 to 0.95, half by default. A panel already in the layout is moved. Undo restores the previous layout. The result holds the change as a diff; with dry_run true the change is only checked and not applied.
layout_set layout.set edit mutates, frame-thread dry_run (boolean), layout (object, required) Replaces the whole layout of the open spec. The layout is a flat list of nodes: each node splits its space horizontally or vertically between its children, with ratio the share of the first child or shares one share for each child, or shows them in tabs; mins gives a panel or control child its minimum in columns and lines. A child is a panel id or another node's id, and root names the top node, or the one panel when there is only one. Every panel of the spec should appear once; a panel left out is not drawn. Undo restores the previous layout. The result holds the change as a diff; with dry_run true the change is only checked and not applied.
layout_lock layout.lock edit mutates, frame-thread dry_run (boolean), locked (boolean, required) Locks or unlocks the open spec's whole layout. While locked, every panel and control is non-closable and layout edits (adding, removing, moving or replacing components) are refused with layout.locked until unlocked. Undo restores the previous lock state. The result holds the change as a diff; with dry_run true the change is only checked and not applied.

Preview Commands

Preview commands stage, diff, commit, or discard multi-step spec edits before workspace mutation.

MCP Tool Command Effect Flags Arguments Summary
preview_begin preview.begin read read-only, frame-thread id (string), panel (string), source (string) Starts a preview of the open spec: a scratch copy on which edits of the open spec stack, each checked like a real edit, while the open spec, the undo history and the journal stay as they are. An edit reaches the preview when its call names the preview's id, which Caliper API takes in the X-Caliper-Preview header; spec.get, spec.validate and panel.render read the preview the same way. With panel or source the preview is scoped to that target: its edits may change only the target, the sources a target panel binds and the items the preview adds. preview.diff shows the stacked change, and only the person commits it, with Accept in Caliper. A preview ends when it is committed or discarded, or after 30 minutes without use.
preview_diff preview.diff read read-only, frame-thread id (string, required) Shows what a preview would change: the diff of the open spec's canonical TOML against the preview with every edit stacked on it, how many edits it holds and what the validator warns about. When the open spec changed since the edits were made, they are applied to it again first, and when one no longer applies the call fails with history.conflict. It changes nothing.
preview_commit preview.commit edit mutates, frame-thread id (string, required) Applies every edit of a preview to the open spec, in order, as one step that one undo reverts, and ends the preview. Only the person commits a preview, with Accept in Caliper: a call from an agent, from caliper-mcp or from a program is refused with preview.not_allowed. When the open spec changed since the edits were made, they are applied to it again, and when one no longer applies the commit is refused with history.conflict and nothing changes.
preview_discard preview.discard read read-only, frame-thread id (string, required) Ends a preview and drops its edits. The open spec, the undo history and the journal stay as they were, as if the preview had never been made.

Workspace Applet Commands

Workspace applet commands save, open, and list spec applets in the builder workspace.

MCP Tool Command Effect Flags Arguments Summary
applet_save applet.save change mutates, destructive, frame-thread id (string), overwrite (boolean) Saves the open spec as a spec applet of the workspace: the folder applets/<id>/ with a manifest <id>.caliper.toml and the spec <id>.spec.toml. The id is the spec's applet id unless one is given. Saving over an existing applet needs overwrite set to true. It writes files, so an agent's call needs the person's approval, and it cannot be undone.
applet_open applet.open change mutates, frame-thread id (string, required) Opens a saved spec applet of the workspace by its id, from applet.list, as the open spec, so that it can be edited. Undo returns to the spec that was open before.
applet_list applet.list read read-only None Lists the spec applets saved in the workspace, with each one's id, title, folder and the time it was last saved. The id is what applet.open takes. It changes nothing.

Provenance Review Commands

Provenance review commands report foreign spec review status for custom GPU programs.

MCP Tool Command Effect Flags Arguments Summary
review_status review.status read read-only None Says which of your commands wait for the person's approval in Caliper before they run: destructive commands, and edits of the open spec when the person reviews spec changes from your origin (for agents, on by default). A call that waits is held until the person decides, for up to 120 seconds, or answered with command.needs_approval; a dry run, an edit of a preview and an edit that changes nothing never wait. An agent that asks the person itself before a change can leave out what Caliper already asks. It changes nothing.

Frame Capture Commands

Frame capture commands render the current application view to a PNG image.

MCP Tool Command Effect Flags Arguments Summary
capture_frame capture.frame read read-only, frame-thread, png-image None Returns the frame the app draws, the whole window, as a PNG image, so that you can see the app as the person does. It changes nothing.

Spec Control Commands

Spec control commands create, patch, remove, and set interactive controls on the active spec.

MCP Tool Command Effect Flags Arguments Summary
control_create control.create edit mutates, frame-thread bind (string), closable (boolean), dry_run (boolean), id (string, required), kind (enum, required), options (object), place (object), title (string) Adds a control to the open spec: a slider, a button or a toggle that the person and you can use. bind names its one target: param:<name> for a parameter of the running script, action:<name> for an action of it, run:pause for pausing and resuming the run, value for a value the spec holds, or intervene:<point> for an intervention point, which a toggle ablates while it is on. run.state lists the parameters and actions, and intervene.points the points. A control is a leaf of the layout, like a panel: place puts it next to a panel or control, and without place it goes under the whole layout. Undo removes it. The result holds the change as a diff; with dry_run true the change is only checked and not applied.
control_patch control.patch edit mutates, frame-thread dry_run (boolean), id (string, required), patch (object, required) Changes a control of the open spec with a JSON merge patch (RFC 7386) of its kind, title, bind and options: the keys given replace the control's own, a key set to null is removed, and options merge key by key. The id cannot change. The id comes from spec.get. Undo restores the control. The result holds the change as a diff; with dry_run true the change is only checked and not applied.
control_remove control.remove edit mutates, frame-thread dry_run (boolean), id (string, required) Removes a control from the open spec and from its layout. Refuses with control.not_closable when the control sets closable to false, and with layout.locked when the layout is locked. The id comes from spec.get. Undo restores it in its place. The result holds the change as a diff; with dry_run true the change is only checked and not applied.
control_set control.set change read-only, frame-thread id (string, required), value (value, required) Sets the value of a control that binds value or a state, as a person's edit does, and returns the value. It adds a control event with the origin of the caller. A control that binds a parameter takes run.set_param, and this command refuses it with control.not_settable. It changes the session and not the workspace, so it has no undo step.

State Variable Commands

State variable commands define and update shared state values across panels, controls, and programs.

MCP Tool Command Effect Flags Arguments Summary
state_create state.create edit mutates, frame-thread choices (array), default (value), dry_run (boolean), id (string, required), max (number), min (number), title (string), type (enum, required), x (value) Adds a state variable to the open spec: a named value that controls and picks write and that panels read through references. type is number, integer, boolean, text, range or list. default, min, max and choices limit the value, and x holds extension keys. The id cursor is reserved. Undo removes it. The result holds the change as a diff; with dry_run true the change is only checked and not applied.
state_patch state.patch edit mutates, frame-thread dry_run (boolean), id (string, required), set (value, required) Changes a state variable of the open spec with the keys of set: the keys given replace the variable's own. The id cannot change. state.get lists the ids. Undo restores the variable. The result holds the change as a diff; with dry_run true the change is only checked and not applied.
state_remove state.remove edit mutates, frame-thread dry_run (boolean), id (string, required) Removes a state variable from the open spec. A reference, a control or a pick that reads or writes the variable keeps it in use, and the command then fails with state.in_use. state.get lists the ids. Undo restores the variable. The result holds the change as a diff; with dry_run true the change is only checked and not applied.
state_set state.set change read-only, frame-thread id (string, required), value (value, required) Sets the current value of a state variable, as a person's edit of a control does, and returns the value and the one before it. The value must fit the type, the bounds and the choices, or the command fails with state.bad_value. It adds a state event with the origin of the caller. It changes the session and not the workspace, so it has no undo step.
state_get state.get read read-only, frame-thread ids (array) Returns the state variables of the open spec: each one's id, type, current value, default, the writers that set it and the readers that use it. ids limits the answer to some variables. It changes nothing.

Selection Commands

Selection commands read and set linked entity or program item selections.

MCP Tool Command Effect Flags Arguments Summary
selection_set selection.set change read-only, frame-thread clear (boolean), entity (string), index (integer), item (integer), panel (string, required), program (string) Makes a pick in a panel: the entity and the item at index, a program that draws in the panel and the item of its item map, or clear to remove the selection. It makes the same pick event, field values and state writes as a person's pick, with the origin of the caller. It returns the pick fields. It changes the session and not the workspace, so it has no undo step.
selection_get selection.get read read-only, frame-thread panel (string, required) Returns the pick fields of the last pick in a panel, or null when the panel has no selection. It changes nothing.

Scene Entity Commands

Scene entity commands add, update, and remove 3D scene entities on scene panels.

MCP Tool Command Effect Flags Arguments Summary
entity_set entity.set edit mutates, frame-thread dry_run (boolean), entity (value, required), panel (string, required) Adds an entity to the scene of a scene panel, or replaces the entity with the same path. The entity is a JSON object with the keys of an entity table. The panel must be a scene panel. Undo restores the scene. The result holds the change as a diff; with dry_run true the change is only checked and not applied.
entity_remove entity.remove edit mutates, frame-thread dry_run (boolean), panel (string, required), path (string, required) Removes the entity with a path from the scene of a scene panel. The panel must be a scene panel, and it must have the entity. Undo restores it. The result holds the change as a diff; with dry_run true the change is only checked and not applied.

Annotation Commands

Annotation commands add, update, and remove labels, thresholds, bands, and markers on panels.

MCP Tool Command Effect Flags Arguments Summary
annotation_set annotation.set edit mutates, frame-thread annotation (value, required), dry_run (boolean), panel (string, required) Adds an annotation to a panel, or replaces the annotation with the same id. The annotation is a JSON object with an id, a kind (label, threshold, band or marker) and the keys of its kind. Undo restores the panel. The result holds the change as a diff; with dry_run true the change is only checked and not applied.
annotation_remove annotation.remove edit mutates, frame-thread dry_run (boolean), id (string, required), panel (string, required) Removes the annotation with an id from a panel. The panel must have the annotation, or the command fails with annotation.not_found. Undo restores it. The result holds the change as a diff; with dry_run true the change is only checked and not applied.

Step Cursor Commands

Step cursor commands read and move the step history cursor across recorded snapshots.

MCP Tool Command Effect Flags Arguments Summary
cursor_get cursor.get read read-only, frame-thread None Returns the cursor, which chooses the step that the panels show, and each source's first and last kept step, the number of kept steps, the number of requested steps and the bytes. It changes nothing.
cursor_set cursor.set change read-only, frame-thread live (boolean), playing (boolean), speed (number), step (integer) Moves the cursor, sets whether it follows the newest step (live), whether it plays and how fast. A step outside the kept steps goes to the nearest kept step, and the result gives the cursor as it is. When no source keeps steps, the command fails with cursor.no_history. It changes the session and not the workspace, so it has no undo step.
cursor_step cursor.step change read-only, frame-thread count (integer, required) Moves the cursor by count kept steps, forward when count is above 0 and back when it is below 0. A count of 0 is refused. The cursor stops at the nearest kept step, and the result gives the cursor as it is. It changes the session and not the workspace, so it has no undo step.

Camera Commands

Camera commands read, set, and save scene panel camera poses and presets.

MCP Tool Command Effect Flags Arguments Summary
camera_get camera.get read read-only, frame-thread panel (string, required) Returns the orbit camera of a scene panel and the views that the panel saved. The panel must be a scene panel. It changes nothing.
camera_set camera.set change read-only, frame-thread orbit (object), panel (string, required), view (string) Moves the orbit camera of a scene panel to a saved view by name, or to the orbit that you give, and returns the orbit. A name that the panel did not save fails with camera.unknown_view. It changes the session and not the workspace, so it has no undo step.
camera_save camera.save edit mutates, frame-thread dry_run (boolean), name (string, required), panel (string, required) Saves the current camera of a scene panel as a view with a name, in the option views of the panel, and replaces the view with the same name. A panel holds at most 16 views. Undo restores the views. The result holds the change as a diff; with dry_run true the change is only checked and not applied.

Run Control and Managed Run Commands

Run commands inspect and steer attached scripts and start, fork, or stop managed workspace runs.

MCP Tool Command Effect Flags Arguments Summary
run_state run.state read read-only, frame-thread run (string) Returns the state of the script that the app is attached to: whether one is attached, whether the app may control it and why not, the run's state and step, its parameters with their values, ranges and pending values, and its actions. It changes nothing.
run_set_param run.set_param run frame-thread name (string, required), run (string), value (number integer
run_action run.action run frame-thread name (string, required), run (string) Runs one action that the running script registered with caliper.action, such as saving a checkpoint. The script runs it at its next step; the result says it is queued, and a run event of change action brings the text it returned, or its error, through events.wait. run.state lists the actions.
run_pause run.pause run frame-thread count (integer), op (enum, required), run (string) Pauses the running script at its next step, resumes it, or lets it run a number of steps and pause again. A script pauses only at a step, so a pause before its first step is refused. The result gives the state the request was sent in; run.state and the run events of change state follow it.
run_list run.list read read-only, frame-thread None Lists the runs: the managed runs that the model runner started, in the order of their start, and the person's own script when the app is attached to one, with the id user. Each run has its state, script, arguments, parameters, parent, step and exit code. It changes nothing.
run_start run.start run frame-thread args (array), dictionary (string), id (string), kind (enum), model (string), params (array), prompt (string), script (string) Starts a managed workspace script or local inference through the fixed Caliper module. Script runs take script, args, and params, with optional kind:script. Inference runs require kind:inference, model, dictionary, and prompt. The two forms cannot mix fields. Both forms wait for approval on a review card. The result has state starting when the process starts. A runner event through events.wait, or run.list, reports later state changes.
run_fork run.fork run frame-thread id (string), interventions (array), params (array), run (string, required), step (integer) Starts a new managed run from the next checkpoint of a running run, with changed parameters, beside its parent: the parent saves a checkpoint through its caliper.checkpoint action, and the fork runs the same script and arguments from it. It always waits for the person's approval on a review card. The result comes at once, in the state starting; a run event of change runner or run.list says when the fork runs.
run_stop run.stop run frame-thread kill_after_s (number), run (string, required) Stops a managed run at its next checkpoint through its caliper.stop action, and ends its process by its id when it has not ended after kill_after_s seconds. The result comes at once, with stopping true; run.list or a run event of change runner says when the run exited.
run_logs run.logs read read-only, frame-thread lines (integer), run (string, required) Returns the last lines that a managed run wrote to its standard output and standard error, which the runner keeps in the run's output.log. It changes nothing.

Event Stream Commands

Event commands wait for live run, pick, and program events from the host ring.

MCP Tool Command Effect Flags Arguments Summary
events_wait events.wait read read-only cursor (integer), kinds (array), limit (integer), panels (array), timeout_s (number) Returns the events that came after a cursor: picks and selections in the app's views and scene panels, changes of controls, changes of the running script (state, parameters, actions, attachment), edits of the open spec, approvals, the compile, refusal and stop of GPU programs, writes of state variables and moves of the cursor. It answers at once when events wait, and otherwise holds the call until one comes or timeout_s ends. Pass the cursor of each result to the next call. The app keeps the last 1024 events; lost counts those that were dropped before you read them. Hovers are not events. It changes nothing.

GPU Program Commands

Program commands attach, patch, remove, read, and inspect GPU programs and piece instances.

MCP Tool Command Effect Flags Arguments Summary
program_create program.create edit mutates, frame-thread bind (value), dry_run (boolean), entry (string), id (string, required), inline (object), inputs (array), limits (object), output (object), panel (string), params (value), piece (object), title (string), wgsl (string), workgroups (array) Adds a GPU program to the open spec: a WGSL compute pass that reads live tensors of the running script in place and read-only, and writes one output. A geometry output becomes an entity of a scene panel. A pixels output becomes the live view program.<id>, which an image panel shows through a source of catalog live:program.<id>. The program runs in the script's process every N steps, with N set so that training keeps 95 percent of its speed, and a program over its time or memory limit stops. The sandbox checks the declaration and the source first; a refused program is not added, and messages give the compiler's line and column. program.status reports its state. Undo removes it. With dry_run true the change is only checked and not applied. An instance of a piece takes piece, bind, panel and params in place of the WGSL keys, and inline adds a whole piece to the spec's inline pieces in the same step; a missing or changed piece is piece.missing or piece.hash_mismatch.
program_patch program.patch edit mutates, frame-thread dry_run (boolean), id (string, required), patch (object, required) Changes a GPU program of the open spec with a JSON merge patch (RFC 7386) of its title, wgsl, entry, inputs, output, limits and workgroups: the keys given replace the program's own, a key set to null is removed, and output and limits merge key by key. The id cannot change. The sandbox checks the program again, and the script runs the new version from its next pass. Undo restores the program. With dry_run true the change is only checked and not applied.
program_remove program.remove edit mutates, frame-thread dry_run (boolean), id (string, required) Removes a GPU program from the open spec; the script stops it and frees its buffers, and its output leaves the scene or the live view. The id comes from spec.get or program.status. Undo restores it. The result holds the change as a diff; with dry_run true the change is only checked and not applied.
program_status program.status read read-only, frame-thread id (string) Returns the state of each GPU program of the open spec: where it runs, whether it compiled, runs, was refused or stopped, its cadence N, the GPU time of its last pass, the overhead of a pass and the base step time on the run's wall clock, the measured share of the training time, its passes a second, its memory, and its last error or active warning with line and column. It changes nothing.
program_read program.read read read-only, frame-thread count (integer), first (integer), id (string, required), resource (string, required), step (integer) Reads elements of a published resource of a program at a step, as the app's step history keeps it: the step of the version, its valid count, and each element's fields as numbers. It lets an agent check what its derive half wrote. It changes nothing.

Piece Library Commands

Piece commands validate, list, inspect, save, copy, update, and delete WGSL pieces.

MCP Tool Command Effect Flags Arguments Summary
piece_check piece.check read read-only headers (boolean), piece (object, required) Checks a piece on its own without saving it: its name, its manifest, its imports, and each pass of the derive half and the draw half composed with the prelude and the generated header and compiled as the script and the viewer compile it. Returns the messages with the file, line and column, the piece's hash, and the generated header of each half, which names every binding the files may use. It changes nothing.
piece_list piece.list read read-only, frame-thread from (enum), match (string) Lists the pieces that an instrument can use: the built-in library, the workspace's pieces/ folder and the inline pieces of the open spec, each version with its inputs, parameters, outputs, hash and the programs of the open spec that pin it. It changes nothing.
piece_show piece.show read read-only, frame-thread from (enum), name (string, required), version (integer) Returns one piece with its manifest and its WGSL files, its source, its folder and the programs of the open spec that pin it. The newest version of the first source that has the name when version and from are absent. It changes nothing.
piece_save piece.save change mutates, frame-thread dry_run (boolean), name (string, required), version (integer) Extracts an inline piece of the open spec into the workspace as pieces/<name>/<version>/ and pins the programs that used it to the workspace piece, in one undo step of the spec. A version that exists is piece.exists. It checks the piece first.
piece_copy piece.copy change mutates as (string), name (string, required), version (integer) Forks a library piece into the workspace as version 1 of a new name, or of its own name, so that the person or the agent can change it. A library piece never changes, and an instrument uses the workspace copy only when its program says from workspace.
piece_update piece.update change mutates piece (object, required) Writes a new version of a workspace piece after it passes the checks: the version must be above every saved one, and the next one when absent. Saved versions never change, and the programs that pin them keep them until program.patch pins the new one.
piece_remove piece.remove change mutates, destructive name (string, required), version (integer, required) Removes one version of a workspace piece and its folder. A version that a program of the open spec pins is piece.in_use, and a library piece is piece.read_only.

Feature Dictionary Commands

Feature commands inspect attached sparse dictionaries, feature summaries, and ranked corpus examples.

MCP Tool Command Effect Flags Arguments Summary
feature_dictionary feature.dictionary read read-only, frame-thread request_id (integer) Reads the registered dictionary metadata at a run boundary.
feature_show feature.show read read-only, frame-thread feature (integer), layer (integer), node (integer), request_id (integer) Reads the real feature label, count, maximum, and promoted tokens.
feature_examples feature.examples read read-only, frame-thread feature (integer), layer (integer), limit (integer), node (integer), request_id (integer) Reads up to sixteen 33-token windows and publishes real rows and UTF-8 labels for token_strip.

Circuit Trace Commands

Trace commands run circuit attribution, poll status, page graph records, and validate faithfulness.

MCP Tool Command Effect Flags Arguments Summary
trace_run trace.run run frame-thread batch_size (integer null), desired_logit_prob (number), edge_threshold (number), max_edges (integer), max_n_logits (integer), max_nodes (integer), max_targets (integer), node_threshold (number), prompt (string), request_id (integer), update_interval (integer)
trace_status trace.status read read-only, frame-thread request_id (integer) Reads the last trace state without a model forward or a wait on the model.
trace_read trace.read read read-only, frame-thread edge_limit (integer), edge_offset (integer), node_limit (integer), node_offset (integer), request_id (integer) Reads a bounded page from the completed graph.
trace_validate trace.validate run frame-thread request_id (integer) Queues validation of the latest trace and intervention snapshot.

Activation Patch Commands

Activation patch commands run batched residual-stream patching sweeps across layers and token positions.

MCP Tool Command Effect Flags Arguments Summary
patch_sweep patch.sweep run frame-thread clean_prompt (string), corrupted_prompt (string), metric (object), request_id (integer) Queues a patch sweep at the next run boundary.

Model Intervention Commands

Intervention commands list model probe points and set, list, or clear live feature and activation edits.

MCP Tool Command Effect Flags Arguments Summary
intervene_points intervene.points read read-only, frame-thread match (string) Lists the intervention points of the model that the attached script watches: each module's output by its dotted name, and each head of an attention module as <module>#<h>, with the module's class and the shape of its last output. Semantic probes retain kind module and add probe, layer and pattern metadata. It changes nothing.
intervene_set intervene.set run frame-thread coefficient (number), dictionary (string), feature (integer), from_step (integer null), kind (enum), multiplier (number), op (enum), point (string, required), positions (array), source_position (integer), source_prompt (string), until_step (integer
intervene_clear intervene.clear run frame-thread all (boolean), point (string) Clears the interventions on one point of the attached model, or every intervention with all true, at the script's next step. The result names the points cleared and says the change is pending; a run event of change intervene reports the step the script applied it at.
intervene_list intervene.list read read-only, frame-thread None Lists the interventions on the attached model with their points, ops, step ranges and states: pending until the script's next step, active, or ended after their last step. It changes nothing.

History Commands

History commands inspect undo and redo steps in the session journal.

MCP Tool Command Effect Flags Arguments Summary
history_list history.list read read-only, frame-thread limit (integer) Lists the steps that can be undone and redone, newest first, with the command that began each step, how many commands it holds, its group, who sent it and when. It changes nothing.

Session-Only Commands

Commands with agents: false belong to interactive user history in the desktop application. The caliper-mcp server omits them from tools/list and refuses them for mcp and agent origins.

Command Effect Flags Arguments Summary
history.undo change mutates, frame-thread steps (integer) Undoes the most recent change to the workspace, or the given number of steps. A step is one command, several commands sent with the same group, or a run of commands merged by a merge key, such as a slider drag. Undo restores the open spec and the saved loader recipes; it does not undo saving an applet or running a loader. Undo is the person's tool: the app's UI, the builder and programs over Caliper API may undo, and an agent may not; an agent takes back a change with an edit. history.list shows the steps first.
history.redo change mutates, frame-thread steps (integer) Redoes the step that was undone most recently, or the given number of steps. Any new change to the workspace clears what can be redone. Redo is the person's tool, as undo is: an agent may not redo.