Realtime Avatar
v0.40.0Read your Realtime Avatar avatars, credit balance and session bill from a coding agent.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_avatars List avatars
Every avatar on this account, with the id you pass to startCall. Call this before writing code — avatar ids cannot be guessed. Callable means status 'ready' AND idleVideoStatus 'ready': the loop is attached. An avatar reads sourceKind 'video' once that happens, including the ones built from a single image — that is the normal end state, not a warning.
get_avatar Get one avatar
Full detail for a single avatar, including its clip set and voice.
| Parameter | Type | Description |
|---|---|---|
avatarId * | string | e.g. ava_1234… |
credit_balance Credit balance
Current balance and how much is reserved by in-flight calls.
list_sessions List billable sessions
The itemised bill: every session with when it ran, how long it was billable for, and what it cost. Billing is per SECOND — activeSeconds is real wall time, never rounded up to a minute. Pass endUserId to see one of your own users, which works only if the call was started with metadata.user_id.
| Parameter | Type | Description |
|---|---|---|
endUserId | string | Your own user id, from metadata.user_id |
from | string | ISO timestamp. Defaults to 30 days ago. |
limit | integer | |
to | string | ISO timestamp. Defaults to now. |
list_clips List an avatar's clip library
The declared clip library: every non-retired clip with its render status, plus the library revision (pass it to set_clip_library as expectedRevision), the pose anchor, default source, idle and event behavior, and eligibility. status is the render JOB, not serveability — a clip re-rendering keeps serving its previous take.
| Parameter | Type | Description |
|---|---|---|
avatarId * | string |