avatar.expression
Sets an avatar's expression, or clears it.
JSON-RPC 2.0project.write
Parameters
- sourcestringThe avatar's source id or name. Default: the only avatar in the workspace.
- expressionstringOne of its expressions; empty for none.
Errors
Not found (-32004) when the workspace has no avatar or the source doesn't exist. Invalid params (-32602) when there are several avatars and no source, or the source isn't an avatar. Not found (-32004) when the model has no such expression; the message lists the ones it has.
Events
Subscribers to events get workspace.changed.
From an AI agent
The MCP server's avatar (action: expression) reaches this method.
Example
{ "jsonrpc": "2.0", "id": 1, "method": "avatar.expression", "params": { "expression": "Happy" }}lightair call avatar.expression '{"expression":"Happy"}'const result = lightair.call("avatar.expression", {"expression":"Happy"});Result
{}