# Command reference

> All MCP commands for customers and users, generated from the command registry of the app.

How to read it: **Command** is the name you pass to `dh.call(name, input)` or `aimigo.commands.get`. **Input** lists the fields of the input object; `?` marks optional fields. For the exact schema of one command call `aimigo.commands.get { name }`, which always matches the version you are talking to.

### Guided processes (`gp.*`, preview)

Guided processes are step-by-step flows defined in process files. The customer loads and unloads them (`gp.process.load`, `gp.process.unload`); an end user runs a session: `gp.runtime.start { processId }` returns a `sessionId`, then `getState`, `showAction`, `userResponse`, `navigate`, `pause`, `resume` and `stop` drive it. `gp.core.process.list` and `gp.core.process.get` read the loaded processes. The authoring guide for process files follows; until then these commands are marked preview.

Generated from the command registry of the app on 2026-11-17. 80 commands for customers and users; commands reserved for Avataris tooling are not listed.

**Role** = the lowest role that may call the command by default. A customer can take user commands away or grant customer commands to users ([permissions](https://aimigo.live/docs/permissions.md)). **Preview** = the command exists, but its behaviour is not complete yet (see its description).

## AI

| Command | Role | What it does | Input |
|---|---|---|---|
| `aimigo.ai.getProvider` | Customer | Current AI provider and model, the models of that provider and all providers (settings panel). serverMode=true: the Aimigo server answers and the provider is chosen there. | – |
| `aimigo.ai.setProvider` | Customer | Switch AI provider and/or model like the settings panel (stored on the device). provider = key from aimigo.ai.getProvider (e.g. 'openai'); model must be one of that provider's models. | `provider?` string, `model?` string |

## AITrigger

| Command | Role | What it does | Input |
|---|---|---|---|
| `aimigo.trigger.execute` | User | Execute an AI trigger (play animation, set emotion, etc.) | `triggerType` string, `triggerName` string, `parameters?` object |
| `aimigo.trigger.list` | User | List all available AI triggers (animations, emotions, etc.) | – |

## App

| Command | Role | What it does | Input |
|---|---|---|---|
| `aimigo.app.quit` | User | Close the app like the header's close button. NotSupported in integration mode (the host owns the app) and on web pages. | – |

## Audio

| Command | Role | What it does | Input |
|---|---|---|---|
| `aimigo.audio.getVolume` | User | Master volume as the slider shows it (volume = the value before mute while muted), muted, listenerVolume. | – |
| `aimigo.audio.setMuted` | User | Mute or unmute all sound, like the header's speaker button (the volume is kept and comes back on unmute). State: aimigo.audio.getVolume (muted). Raises event settings { name: 'muted' }. | `muted` boolean |
| `aimigo.audio.setVolume` | User | Set the master volume 0..1 like the header slider (AudioMixer, stored on the device, moves the slider; 0 mutes). Raises event settings { name: 'volume' }. | `volume` number |

## Character

| Command | Role | What it does | Input |
|---|---|---|---|
| `aimigo.character.getCurrent` | User | Get the currently active character | – |
| `aimigo.character.list` | User | List all available digital human characters | – |
| `aimigo.character.set` | User | Activate a character. characterId = slot name (the id from aimigo.character.list), character GUID or character name. Starts a transition and answers at once (operation 'started'); the outcome arrives as event 'character' ({ success, errorCode?, error? }). Unknown id = CharacterNotFound. | `characterId` string |

## Chat

| Command | Role | What it does | Input |
|---|---|---|---|
| `aimigo.chat.getLastResponse` | User · preview | Get the last AI response message | – |
| `aimigo.chat.sendMessage` | User | Send a text message to the AI character | `message` string |
| `aimigo.chat.startRecording` | User | Start voice input like pressing the microphone button (asks for permission if needed; interrupts the digital human). | – |
| `aimigo.chat.stopRecording` | User | Stop voice input like releasing the microphone button: the speech is transcribed and sent to the digital human. | – |

## ConversationalAI

| Command | Role | What it does | Input |
|---|---|---|---|
| `aimigo.conversational.getState` | User | Get the current state of the conversational AI session | – |
| `aimigo.conversational.start` | User | Start a real-time voice conversation with the AI (11Labs Conversational AI) | – |
| `aimigo.conversational.stop` | User | Stop the current real-time voice conversation | – |

## Discovery

| Command | Role | What it does | Input |
|---|---|---|---|
| `aimigo.commands.get` | User | Full definition of one command (description, input schema, usage, minimum role). | `name` string |
| `aimigo.commands.list` | User | List every MCP command you may use (name, description, category, one-line usage). Start here in onboarding. Filter with category; includeSchema=true adds the full JSON input schemas (large). | `category?` string, `includeSchema?` boolean |
| `aimigo.commands.search` | User | Find MCP commands by words (English or German), e.g. 'volume', 'Lautstärke', 'switch character', 'transparent'. Returns the best matches with their input schemas. Use this instead of loading the full list. | `query` string, `limit?` integer, `category?` string |
| `aimigo.skills.get` | User | Read one skill (markdown) by id from aimigo.skills.list. | `id` string |
| `aimigo.skills.list` | User | List every skill you may use: how-to guides in markdown (e.g. how to build and bind the HTML UI). Start here in onboarding. | – |

## Display

| Command | Role | What it does | Input |
|---|---|---|---|
| `aimigo.display.getMode` | User | Get current display mode (fullscreen/windowed) | – |
| `aimigo.ui.setFullscreen` | User | Fullscreen or window, like the header's screen button: fullscreen = borderless at the screen's resolution, window = the last window size (at least 640x360). Windowed is refused while transparent mode is on (NotAvailableInTransparencyMode). In a browser this uses the page's fullscreen. State: aimigo.display.getMode. | `fullscreen` boolean |

## Feedback

| Command | Role | What it does | Input |
|---|---|---|---|
| `aimigo.feedback.submit` | User · preview | Submit user feedback | `rating` number, `message?` string |

## GuidedProcesses

| Command | Role | What it does | Input |
|---|---|---|---|
| `gp.core.process.get` | User · preview | Get one process in GP_Core format. Params: processId. | `processId` integer |
| `gp.core.process.list` | User · preview | List all processes in GP_Core format (cross-platform). | – |
| `gp.process.load` | Customer · preview | Load a GP_Core .gps.json process into Unity (creates a playable Unity process). Params: processJson (string, required). | `processJson` string |
| `gp.process.unload` | Customer · preview | Unload a process: aborts and releases its core runtime sessions. Params: processId. | `processId` integer |
| `gp.runtime.getState` | User · preview | Get the state of a guided-process session (step/action indices, score, UI mode). Params: sessionId. | `sessionId` string |
| `gp.runtime.navigate` | User · preview | Navigate a session: direction 'next'/'back' OR explicit stepIndex/actionIndex. Params: sessionId + direction\|stepIndex/actionIndex. | `sessionId` string, `direction?` string, `stepIndex?` integer, `actionIndex?` integer |
| `gp.runtime.pause` | User · preview | Pause a running guided-process session. Params: sessionId. | `sessionId` string |
| `gp.runtime.resume` | User · preview | Resume a paused guided-process session. Params: sessionId. | `sessionId` string |
| `gp.runtime.showAction` | User · preview | Show a specific action in the Unity UI. Params: sessionId, optional stepIndex/actionIndex. | `sessionId` string, `stepIndex?` integer, `actionIndex?` integer |
| `gp.runtime.start` | User · preview | Start a guided-process runtime session (GP_Core session, drives Unity UI). Params: processId. Returns sessionId. | `processId` integer |
| `gp.runtime.stop` | User · preview | Stop (abort) a running guided-process session. Params: sessionId. | `sessionId` string |
| `gp.runtime.userResponse` | User · preview | Submit the user's response for the current action. Params: sessionId, optional textValue/selectedOptions/skipped. | `sessionId` string, `textValue?` string, `selectedOptions?` array, `skipped?` boolean |
| `gp.settings.getUIMode` | User · preview | Get the UI mode of one session (sessionId) or of all sessions. | `sessionId?` string |
| `gp.tools.list` | User · preview | List all available GP MCP tools of the Unity side. | – |

## Image

| Command | Role | What it does | Input |
|---|---|---|---|
| `aimigo.image.getScreenshot` | Customer | Capture a screenshot of the current 3D view | `width?` number, `height?` number |

## Loading

| Command | Role | What it does | Input |
|---|---|---|---|
| `aimigo.loading.setText` | Customer | Set or clear the message shown on Unity's boot loading screen in integration mode. Pass a non-empty string to display it (overrides the default silent state); pass an empty string or omit the field to clear and return the screen to silent. Order-independent: can be called before or after the loading screen is shown. | `text?` string |

## Navigation

| Command | Role | What it does | Input |
|---|---|---|---|
| `aimigo.camera.getState` | User | Get current camera position, rotation and mode | – |
| `aimigo.camera.move` | User | Move the camera by a position delta (x, y, z) | `x?` number, `y?` number, `z?` number |
| `aimigo.camera.reset` | User · preview | Reset camera to default position | – |
| `aimigo.camera.rotate` | User | Rotate the camera by euler angle deltas | `pitch?` number, `yaw?` number |
| `aimigo.camera.setNavigationMode` | User | 2D/3D navigation like the header switch: '2d' = orbit around the digital human, '3d' = walk freely in the room. Refused during intros/actions and 2d to 3d while transparent; the answer reports the active mode (applied=false if refused). | `mode` string |
| `aimigo.camera.zoom` | User | Zoom the camera in/out | `delta` number |

## Permissions

| Command | Role | What it does | Input |
|---|---|---|---|
| `aimigo.permissions.getCaller` | User | Who am I: your role (user, customer, internal), where your call comes from, how many commands and skills you may use. | – |
| `aimigo.permissions.getUserPolicy` | Customer | Customer: what end users may do. Returns userAllow/userDeny patterns, the resulting user commands and skills, and the customer commands that can be granted to users. | – |
| `aimigo.permissions.setUserPolicy` | Customer | Customer: decide what end users may do through the UI and the digital human. userDeny removes commands/skills, userAllow grants customer commands/skills (e.g. 'aimigo.ui.*' to let users redesign the UI). Patterns: exact name, prefix*, category:<Category>, skill:<id>. Deny wins. reset=true goes back to the shipped policy. | `userAllow?` array, `userDeny?` array, `persist?` boolean, `reset?` boolean |

## Personality

| Command | Role | What it does | Input |
|---|---|---|---|
| `aimigo.personality.getTraits` | User | Get all personality traits with current values | – |
| `aimigo.personality.setTrait` | Customer | Set a personality trait to a specific value (0-100) | `traitName` string, `value` number |

## Quest

| Command | Role | What it does | Input |
|---|---|---|---|
| `aimigo.quest.getCurrent` | User | Get the current daily quest | – |

## Role

| Command | Role | What it does | Input |
|---|---|---|---|
| `aimigo.role.getCurrent` | User | Get the currently active AI agent role | – |
| `aimigo.role.list` | User · preview | List all available AI agent roles | – |
| `aimigo.role.set` | User | Set the active AI agent role | `roleId` string |

## Scene

| Command | Role | What it does | Input |
|---|---|---|---|
| `aimigo.scene.getCurrent` | User | Get the currently loaded 3D scene | – |
| `aimigo.scene.list` | User | List all available 3D environments/scenes | – |
| `aimigo.scene.set` | User | Load a specific 3D environment by BGDatabase ID | `sceneId` string |

## Settings

| Command | Role | What it does | Input |
|---|---|---|---|
| `aimigo.settings.getAll` | User | Everything an HTML UI needs to initialise its controls in one call: volume, muted, appLanguage, navigation (2d/3d), glass, transparency, chatWindowOpen, fullscreen, screen size, microphones, platform, integration mode. | – |
| `aimigo.settings.getLanguages` | User | Languages the app offers (name + code) and the current app language. The app language drives UI texts, the digital human's dialogue, AI answers and speech recognition. | – |
| `aimigo.settings.getMicrophones` | User | Microphones as the speech recognition sees them (index, name, isCurrent) and the current one. | – |
| `aimigo.settings.setLanguage` | User | Switch the app language, like the footer's language dropdown (UI texts, dialogue, AI and speech language). language = a code or name from aimigo.settings.getLanguages; a short code like 'de' picks the first matching locale. Raises event settings { name: 'language' }. | `language` string |
| `aimigo.settings.setMicrophone` | User | Select the microphone like the settings dropdown (by name or index from aimigo.settings.getMicrophones). Raises event settings { name: 'microphone' }. | `deviceName?` string, `deviceIndex?` number |

## Speech

| Command | Role | What it does | Input |
|---|---|---|---|
| `ai.triggers` | User | Gestures and facial expressions for the next audio (trigger codes). With audioFollowing=true they are timed to the following audio.play; otherwise they play at once with estimated timing. A character must be loaded. | `triggerCodes` string, `audioFollowing?` boolean, `audioTimeoutSeconds?` number, `responseText?` string |
| `audio.play` | User | Play base64 audio (WAV/MP3) with lip sync; optional word timestamps for exact subtitle and gesture timing. | `audioData` string, `format?` string, `contentType?` string, `wordTimestamps?` string |
| `audio.playAmbient` | User | Play audio without lip sync: background music, ambient sounds, UI sounds. Does not animate the digital human. | `audioData` string, `format?` string |
| `chat.displayUser` | Customer | Show a user message in the chat without asking the AI for an answer. | `message` string |
| `chat.send` | Customer | Show the digital human's spoken text as subtitle and add it to the conversation (text only; the voice comes with audio.play). | `message` string |

## System

| Command | Role | What it does | Input |
|---|---|---|---|
| `aimigo.system.getInfo` | User | Get current Aimigo application state and info | – |
| `aimigo.system.getIntegrationConfig` | Customer | Get current integration configuration (character, scene, role, tab) | – |
| `aimigo.system.isReady` | User | Whether the app finished loading and accepts scene, character and role commands. Poll until ready=true before aimigo.scene.set / aimigo.character.set / aimigo.role.set (internal hosts: also before aimigo.cxo.switch); earlier calls race the start-up and fail silently. | – |

## Transparency

| Command | Role | What it does | Input |
|---|---|---|---|
| `aimigo.transparency.getState` | User | Get the current transparency mode state (whether the scene is loaded and the bridge is active) | – |
| `aimigo.transparency.set` | User | Transparent mode on/off: only the digital human is shown, without background (loads/unloads the Transparent_Scene). With characterId the transparent scene and that character load in one transition. Answers at once; the outcome arrives as event 'transparency' ({ success, errorCode?, error? }); aimigo.transparency.getState carries lastErrorCode/lastError. | `enabled` boolean, `characterId?` string |
| `aimigo.transparency.setAlwaysOnTop` | User | Set the transparency window always-on-top state. enabled=true keeps the transparent character window above all other windows; enabled=false restores normal Z-order. Requires the transparency bridge to be active. | `enabled` boolean |
| `aimigo.transparency.setOpacity` | User | Show or hide the transparent Digital Human window. enabled=true shows it (opacity 255); enabled=false hides it (opacity 0). Requires the transparency bridge to be active. | `enabled` boolean |

## UI

| Command | Role | What it does | Input |
|---|---|---|---|
| `aimigo.ui.getGlass` | User | Whether the liquid-glass look of the UI backgrounds is on. | – |
| `aimigo.ui.setChatWindow` | User | Open or close the Unity UI's chat window (footer chat button). NotSupported when the Unity UI is not loaded (an HTML UI draws its own chat). | `open` boolean |
| `aimigo.ui.setGlass` | User | Liquid-glass look of the UI panel backgrounds on/off (glass instead of flat backgrounds). preserveSourceColor keeps the panels' own colour as tint. Raises event settings { name: 'glass' }. | `enabled` boolean, `preserveSourceColor?` boolean |

## Skills

| Skill id | Role | Summary |
|---|---|---|
| `html-ui-design-binding` | Customer | Build the Aimigo app's HTML UI over the digital human and bind every button, slider and toggle to MCP commands. |
