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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:74-78 (handler)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.'); } );