play_video
Stream and play videos directly from a provided link using the MCP server VideoDB Director. Ideal for quick access to video content based on user input.
Instructions
Play the video of the given stream link
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stream_link | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The asynchronous handler function that implements the core logic of the 'play_video' tool. It takes a stream_link parameter, opens the VideoDB player in the default web browser, and returns a success message.
async def play_video(stream_link: str) -> dict[str, Any]: webbrowser.open(f"https://console.videodb.io/player?url={stream_link}") return {"message": "Opening VideoDB in browser"} - modelcontextprotocol/videodb_director_mcp/main.py:81-84 (registration)The @mcp.tool decorator registers the 'play_video' function as an MCP tool, specifying its name and description. This integrates it into the FastMCP server.
@mcp.tool( name="play_video", description="Play the video of the given stream link", )