get_live_chat_id
Retrieve the live chat ID for a live YouTube stream using its video ID. Required to fetch chat messages during the broadcast.
Instructions
Get the live chat ID for a currently streaming video.
Retrieves the active live chat ID required for fetching chat messages.
This ID remains constant throughout the stream's duration.
Cached for 5 minutes since chat ID doesn't change during stream.
Args:
video_id: YouTube video ID of the live stream.
Returns:
Dictionary with:
- video_id: YouTube video ID
- live_chat_id: Active live chat ID
- is_live: Boolean confirming video is live
Example:
>>> result = get_live_chat_id("dQw4w9WgXcQ")
>>> chat_id = result["live_chat_id"]
Note:
- Costs 1 quota unit per request
- Cached for 5 minutes in youtube.api namespace
- Raises error if video is not live or chat disabled
- Use is_live() first to check if video is broadcastingCaching Behavior:
Parameters that accept reference strings can accept a
ref_idfrom a previous tool callLarge results return ref_id + preview; use get_cached_result to paginate
All responses include ref_id for future reference
Ref input compatibility: Support depends on the tool's input schema/validation. Some strictly typed parameters may reject string ref_ids before resolution.
Full retrieval: Use get_cached_result(ref_id, full=True) to get the complete value.
Preview Size: server default. Override per-call with get_cached_result(ref_id, max_size=...).
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": {
"video_id": "<video_id>"
},
"name": "get_live_chat_id"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| video_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||