pause_video
Pause or resume the currently playing video in the social-video-mcp server to control playback during AI-assisted video interactions.
Instructions
Toggle pause/resume on the currently playing video.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:81-94 (handler)The handler logic for the 'pause_video' tool, which uses the mpv library to cycle the pause state of the video.
server.tool( 'pause_video', 'Toggle pause/resume on the currently playing video.', {}, async () => { try { await mpv.command(['cycle', 'pause']); const paused = await mpv.getProperty('pause'); return textResult(paused ? 'Video paused.' : 'Video resumed.'); } catch (err) { return errorResult(`Error: ${err instanceof Error ? err.message : String(err)}`); } } );