open_project
Open an existing Adobe Premiere Pro project file from a specified path to begin video editing or continue work on a saved project.
Instructions
Opens an existing Adobe Premiere Pro project from a specified file path.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The absolute path to the .prproj file to open |
Implementation Reference
- src/bridge/index.ts:199-217 (handler)Core handler in PremiereProBridge that executes ExtendScript to open the project document in Premiere Pro and returns structured project information.async openProject(path: string): Promise<PremiereProProject> { const script = ` // Open existing project app.openDocument("${path}"); var project = app.project; // Return project info JSON.stringify({ id: project.documentID, name: project.name, path: project.path, isOpen: true, sequences: [], projectItems: [] }); `; return await this.executeScript(script); }
- src/tools/index.ts:66-71 (registration)Tool registration in getAvailableTools() array, including name, description, and input schema using Zod.name: 'open_project', description: 'Opens an existing Adobe Premiere Pro project from a specified file path.', inputSchema: z.object({ path: z.string().describe('The absolute path to the .prproj file to open') }) },
- src/tools/index.ts:438-440 (handler)Dispatch handler in executeTool switch statement that invokes the openProject wrapper for the 'open_project' tool.case 'open_project': return await this.openProject(args.path); case 'save_project':
- src/tools/index.ts:760-775 (handler)Wrapper handler in PremiereProTools that calls the bridge handler, handles errors, and formats the standardized response.private async openProject(path: string): Promise<any> { try { const result = await this.bridge.openProject(path); return { success: true, message: `Project opened successfully`, projectPath: path, ...result }; } catch (error) { return { success: false, error: `Failed to open project: ${error instanceof Error ? error.message : String(error)}` }; } }