seek_video
Jump to a specific timestamp in a playing YouTube or TikTok video by entering the exact second position.
Instructions
Seek to an absolute position in the currently playing video.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seconds | Yes | Position to seek to in seconds |
Implementation Reference
- src/index.ts:96-108 (handler)The definition and handler implementation for the 'seek_video' MCP tool. It uses mpv.command to seek to the specified position in seconds.
server.tool( 'seek_video', 'Seek to an absolute position in the currently playing video.', { seconds: z.number().min(0).describe('Position to seek to in seconds') }, async ({ seconds }) => { try { await mpv.command(['seek', seconds, 'absolute']); return textResult(`Seeked to ${seconds}s.`); } catch (err) { return errorResult(`Error: ${err instanceof Error ? err.message : String(err)}`); } } );