# avatar.change

Source: https://docs.lightair.app/developers/remote-api/avatar.change

> Puts an avatar from the library on an avatar object, as the library sheet does.

JSON-RPC 2.0 method of Lightair's Remote API (ws://localhost:4455/rpc). Group: Avatars and co-host. Script plugins need the `project.write` permission.

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `source` | `string` | no | The avatar's source id or name. Default: the only avatar in the workspace. |
| `avatar` | `string` | yes | A 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.

## Related

- [avatar.library](https://docs.lightair.app/developers/remote-api/avatar.library.md)
