Skip to main content
Glama

get_playhead_info

Retrieve the current playhead position and playback status in Adobe Premiere Pro for automation, monitoring, or integration purposes.

Instructions

Get current playhead position and playback state

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function that fetches playhead information from the local HTTP server at localhost:3001/api/playhead, processes the data, and returns formatted text response about playhead position, timecode, playback status, etc. Handles errors gracefully.
    async getPlayheadInfo() { try { const response = await fetch('http://localhost:3001/api/playhead'); if (!response.ok) throw new Error(`HTTP ${response.status}: ${response.statusText}`); const data = await response.json(); if (data.error) { return { content: [ { type: 'text', text: `⚠️ ${data.error}`, }, ], }; } return { content: [ { type: 'text', text: `⏱️ **Playhead Info**\n\n**Sequence:** ${data.sequence_name}\n**Timecode:** ${data.timecode}\n**Frame:** ${data.frame_number}\n**Progress:** ${data.percentage_complete}%\n**Status:** ${data.is_playing ? '▶️ Playing' : '⏸️ Paused'}\n**Speed:** ${data.playback_speed}x`, }, ], }; } catch (error) { return { content: [ { type: 'text', text: `❌ **Failed to get playhead info**\n\nError: ${error.message}`, }, ], isError: true, }; } }
  • Tool definition in the listTools response, including name, description, and empty input schema (no parameters required).
    { name: "get_playhead_info", description: "Get current playhead position and playback state", inputSchema: { type: "object", properties: {}, required: [] } },
  • mcp-server.js:246-247 (registration)
    Registration and dispatch in the tool call request handler switch statement, routing calls to the getPlayheadInfo handler method.
    case 'get_playhead_info': return await this.getPlayheadInfo();

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/jordanl61/premiere-pro-mcp-server'

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