get_project_bins
Retrieve project bin structure and organization from Adobe Premiere Pro using the MCP Server for streamlined workflow automation and project management.
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 localhost:3001 API endpoint '/api/project-bins', processes it into a hierarchical list with counts and labels, and returns a formatted text response. Handles errors gracefully.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:105-108 (schema)Input schema for the 'get_project_bins' tool: an empty object with no required properties.type: "object", properties: {}, required: [] }
- mcp-server.js:102-109 (registration)Tool registration in the list returned by ListToolsRequestSchema, including name, description, and input schema.name: "get_project_bins", description: "Get project bin structure and organization", inputSchema: { type: "object", properties: {}, required: [] } },
- mcp-server.js:243-244 (registration)Dispatch/registration in the CallToolRequestSchema switch statement that routes calls to the getProjectBins handler.case 'get_project_bins': return await this.getProjectBins();