Skip to main content
Glama

player_seek

Navigate media playback by seeking forward, backward, or to specific timestamps within the current video or audio file using the mcp-mpv-player server.

Instructions

Seek within the current media.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueYesSeconds to seek (positive = forward, negative = backward) when mode=relative. Absolute second when mode=absolute. 0-100 when mode=percent.
modeNoSeek moderelative

Implementation Reference

  • The handler function for the 'player_seek' tool, which interfaces with an MPV player to perform seek operations based on the provided value and mode.
    case "player_seek": {
      await ensureMpv();
      const mode = args.mode || "relative";
      await mpv("seek", [args.value, mode]);
      const pos = await getProperty("time-pos");
      return ok(`Seeked → ${formatTime(pos)}`);
    }
  • The schema definition for the 'player_seek' tool, specifying its arguments (value, mode) and their constraints.
    {
      name: "player_seek",
      description: "Seek within the current media.",
      inputSchema: {
        type: "object",
        properties: {
          value: {
            type: "number",
            description:
              "Seconds to seek (positive = forward, negative = backward) when mode=relative. Absolute second when mode=absolute. 0-100 when mode=percent.",
          },
          mode: {
            type: "string",
            enum: ["relative", "absolute", "percent"],
            default: "relative",
            description: "Seek mode",
          },
        },
        required: ["value"],
      },
    },

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/guodaxia9527/mcp-mpv-player'

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