save_project_as
Save the current Adobe Premiere Pro project with a new name and location to create backups or versions.
Instructions
Saves the current project with a new name and location.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The new name for the project | |
| location | Yes | The absolute directory path where the project should be saved |
Implementation Reference
- src/tools/index.ts:793-814 (handler)The handler function that implements the core logic of the 'save_project_as' tool. It generates an ExtendScript snippet to invoke Premiere Pro's `app.project.saveAs(newPath)` method with the user-provided name and location, then executes it via the bridge.private async saveProjectAs(name: string, location: string): Promise<any> { const script = ` try { var project = app.project; var newPath = "${location}/${name}.prproj"; project.saveAs(newPath); JSON.stringify({ success: true, message: "Project saved as: " + newPath, newPath: newPath }); } catch (e) { JSON.stringify({ success: false, error: e.toString() }); } `; return await this.bridge.executeScript(script); }
- src/tools/index.ts:78-84 (schema)Input schema for the 'save_project_as' tool using Zod, defining required string parameters 'name' and 'location'.name: 'save_project_as', description: 'Saves the current project with a new name and location.', inputSchema: z.object({ name: z.string().describe('The new name for the project'), location: z.string().describe('The absolute directory path where the project should be saved') }) },
- src/tools/index.ts:443-443 (registration)Registration in the executeTool switch statement that routes calls to the 'save_project_as' handler.return await this.saveProjectAs(args.name, args.location);
- dist/tools/index.d.ts:27-27 (registration)TypeScript declaration of the saveProjectAs method in the built distribution.private saveProjectAs;