Skip to main content
Glama

get_timeline_structure

Extract the track structure of the active sequence in Adobe Premiere Pro for advanced automation, workflow optimization, and AI integration.

Instructions

Get the track structure of the active sequence

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function implementing the tool logic. Fetches timeline structure data from an HTTP endpoint, processes video and audio track information, formats it into a markdown response, and handles errors.
    async getTimelineStructure() { try { const response = await fetch('http://localhost:3001/api/timeline-structure'); 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}`, }, ], }; } const videoTracks = data.video_tracks.map(track => ` • V${track.track_index}: ${track.track_name} ${track.is_locked ? '🔒' : ''} ${track.is_visible ? '👁️' : '🙈'} (${track.blend_mode})` ).join('\n'); const audioTracks = data.audio_tracks.map(track => ` • A${track.track_index}: ${track.track_name} ${track.is_locked ? '🔒' : ''} ${track.is_muted ? '🔇' : '🔊'} ${track.is_solo ? '🎯' : ''} (Vol: ${track.volume}dB, Pan: ${track.pan})` ).join('\n'); return { content: [ { type: 'text', text: `🎬 **Timeline Structure: ${data.sequence_name}**\n\n**Video Tracks:**\n${videoTracks}\n\n**Audio Tracks:**\n${audioTracks}`, }, ], }; } catch (error) { return { content: [ { type: 'text', text: `❌ **Failed to get timeline structure**\n\nError: ${error.message}`, }, ], isError: true, }; } }
  • The tool's schema definition returned by the ListTools handler, including name, description, and input schema (empty object, no required parameters).
    { name: "get_timeline_structure", description: "Get the track structure of the active sequence", inputSchema: { type: "object", properties: {}, required: [] } },
  • mcp-server.js:234-235 (registration)
    Registration in the CallToolRequestSchema switch statement that dispatches tool calls named 'get_timeline_structure' to the corresponding handler method.
    case 'get_timeline_structure': return await this.getTimelineStructure();

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