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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"seconds": "<seconds>"
},
"name": "seek_video"
}
}Input 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)}`); } } );