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.
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": "pause_video"
}
}Input 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)}`); } } );