Get video embed code
get_video_embed_codeEmbed code and URL for a video. Rules (also in the answer as embedRules): Paste the code exactly as returned. Use responsive (it fills its container's width in the video's shape); iframe only for one fixed pixel size (set by width/height). The chat skin is asked for, not edited in: on a dark website call get_stream_embed_codes with theme dark (or auto) and paste that answer; never add ?theme= by hand. Never wrap the player in your own frame, border, rounded or fixed-height box, nor set width, height, border-radius or object-fit on the iframe: that cuts off the picture or the controls. For a smaller player put responsive into a narrower container (e.g. max-width: 480px), never a fixed height. Several videos on a page: show posters (thumbnailUrl from list_videos or get_video) with titles and load the player only for the clicked video: one player on the page, above the list or in a dialog. Every embedded player starts playing by itself, muted, once loaded, so never put several player iframes in a grid or list. Titles, descriptions and posters come from the API; never invent them.
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_video_embed_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| width | No | Player width in pixels, 100-4096 | |
| height | No | Player height in pixels, 100-4096 | |
| video_id | Yes | Video id |