get_project_bins
Retrieve the bin structure and organization of Adobe Premiere Pro projects to manage media assets and streamline editing workflows.
Instructions
Get project bin structure and organization
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- mcp-server.js:612-655 (handler)The main handler function that fetches project bins data from the local API endpoint, processes the hierarchical bin structure, formats it with indentation and emojis, handles errors, and returns structured MCP content.async getProjectBins() { try { const response = await fetch('http://localhost:3001/api/project-bins'); 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 binsList = data.bins.map(bin => { const indent = bin.parent_bin ? ' ' : ''; const subBins = bin.sub_bins.length > 0 ? ` (${bin.sub_bins.length} sub-bins)` : ''; return `${indent}📁 **${bin.bin_name}** - ${bin.media_count} items${subBins} ${bin.color_label ? `🏷️ ${bin.color_label}` : ''}`; }).join('\n'); return { content: [ { type: 'text', text: `📁 **Project Bins (${data.total_bins} total)**\n\n${binsList}`, }, ], }; } catch (error) { return { content: [ { type: 'text', text: `❌ **Failed to get project bins**\n\nError: ${error.message}`, }, ], isError: true, }; } }
- mcp-server.js:104-108 (schema)Input schema for the get_project_bins tool, which requires no parameters (empty object).inputSchema: { type: "object", properties: {}, required: [] }
- mcp-server.js:101-109 (registration)Tool registration in ListToolsRequestHandler, defining name, description, and schema.{ name: "get_project_bins", description: "Get project bin structure and organization", inputSchema: { type: "object", properties: {}, required: [] } },
- mcp-server.js:243-244 (registration)Handler dispatch in CallToolRequestHandler switch statement, routing 'get_project_bins' calls to the getProjectBins method.case 'get_project_bins': return await this.getProjectBins();