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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "stop_video"
}
}Input 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.'); } );