prev_video
Navigate to the previous video in your current playlist while using the social-video-mcp server for YouTube and TikTok playback control.
Instructions
Go back to the previous video in the current playlist.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:130-148 (handler)The implementation of the 'prev_video' MCP tool, which executes 'playlist-prev' via the mpv command and returns the new video's status, title, and position.
server.tool( 'prev_video', 'Go back to the previous video in the current playlist.', {}, async () => { try { await mpv.command(['playlist-prev']); await new Promise((r) => setTimeout(r, 1000)); const [title, pos, count] = await Promise.all([ mpv.getProperty('media-title'), mpv.getProperty('playlist-pos'), mpv.getProperty('playlist-count'), ]); return textResult({ status: 'skipped_prev', title, position: `${Number(pos) + 1}/${count}` }); } catch (err) { return errorResult(`Error: ${err instanceof Error ? err.message : String(err)}`); } } );