get_livekit_token
Generate a LiveKit WebRTC token to authenticate an agent for real-time sessions. Provide agent ID and optional branch, version, or environment.
Instructions
Get Webrtc Token
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"agent_id": "<agent_id>"
},
"name": "get_livekit_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | Agent id (agent_…) or speech engine external id (seng_), resolved to the same underlying resource. | |
| branch_id | No | The ID of the branch to use | |
| version_id | No | The ID of the version to use | |
| environment | No | The environment to use for resolving environment variables (e.g. 'production', 'staging'). Defaults to 'production'. | |
| participant_name | No | Optional custom participant name. If not provided, user ID will be used | |
| debug_events_request | No | Whether to enable debug events. Only available for users with editor access to the agent. |