Skip to main content
Glama

stop_video

Stop the currently playing video and close the mpv player window to end video playback sessions.

Instructions

Stop the currently playing video and close the mpv window.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler for the 'stop_video' tool which stops playback and cleans up the mpv instance.
    async () => {
      if (!mpv.isPlaying()) return textResult('No video is currently playing.');
      mpv.cleanup();
      return textResult('Video stopped.');
    }
  • src/index.ts:70-79 (registration)
    Registration of the 'stop_video' tool within the MCP server instance.
    server.tool(
      'stop_video',
      'Stop the currently playing video and close the mpv window.',
      {},
      async () => {
        if (!mpv.isPlaying()) return textResult('No video is currently playing.');
        mpv.cleanup();
        return textResult('Video stopped.');
      }
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ronantakizawa/social-video-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server