Skip to main content
Glama

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
NameRequiredDescriptionDefault
secondsYesPosition to seek to in seconds

Implementation Reference

  • 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)}`);
        }
      }
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ronantakizawa/social-video-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server