get_project_info
Retrieve current Premiere Pro project details including name, settings, and metadata for workflow automation and AI integration.
Instructions
Get basic information about the current Premiere Pro project
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- mcp-server.js:304-348 (handler)The handler function that implements the core logic for the 'get_project_info' tool. It makes an HTTP request to localhost:3001 to retrieve project statistics from Premiere Pro and formats the response as MCP content or handles errors.
async getProjectInfo() { try { // Fetch real project info from HTTP server which communicates with Premiere Pro const response = await fetch('http://localhost:3001/api/project-stats'); if (!response.ok) { throw new Error(`HTTP ${response.status}: ${response.statusText}`); } const projectData = await response.json(); return { content: [ { type: 'text', text: `**Current Premiere Pro Project Information:** š½ļø **Project**: ${projectData.projectName || 'Unknown Project'} š¬ **Sequences**: ${projectData.sequences || 0} š„ **Clips**: ${projectData.clips || 0} š **Bins**: ${projectData.bins || 0} š¤ļø **Tracks**: ${projectData.tracks || 0} ā±ļø **Duration**: ${projectData.duration || 'Unknown'} *Retrieved from active Premiere Pro instance*`, }, ], }; } catch (error) { return { content: [ { type: 'text', text: `ā **Error getting project info**: ${error.message} **Troubleshooting:** - Ensure Premiere Pro is running - Check that HTTP server is running on port 3001 - Verify the MCP extension is loaded in Premiere Pro - Make sure a project is open in Premiere Pro`, }, ], isError: true, }; } } - mcp-server.js:33-41 (schema)The schema and metadata definition for the 'get_project_info' tool, including an empty input schema indicating no parameters are required.
{ name: "get_project_info", description: "Get basic information about the current Premiere Pro project", inputSchema: { type: "object", properties: {}, required: [] } }, - mcp-server.js:222-223 (registration)Registration of the tool in the CallToolRequestSchema handler's switch statement, dispatching calls to the getProjectInfo method.
case 'get_project_info': return await this.getProjectInfo();