avatar.change
Puts an avatar from the library on an avatar object, as the library sheet does.
JSON-RPC 2.0project.write
Parameters
- sourcestringThe avatar's source id or name. Default: the only avatar in the workspace.
- avatarstringrequiredA library entry's id or name.
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. Invalid params (-32602) without avatar; not found (-32004) when it isn't in the library.
From an AI agent
The MCP server's avatar (action: change) reaches this method.
Example
{ "jsonrpc": "2.0", "id": 1, "method": "avatar.change", "params": {}}lightair call avatar.changeconst result = lightair.call("avatar.change", {});