add_track
Add a new track to your project in Synthesizer V AI Vocal Studio. Specify a name for the track to organize and expand your vocal production.
Instructions
Add a new track to the project
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name of the new track |
Implementation Reference
- src/index.ts:546-571 (handler)MCP tool handler for 'add_track': parses input arguments to create params, executes the 'add_track' command via executeCommand (which communicates with Synthesizer V Studio Lua script using JSON files), and formats the response or error.case "add_track": { const args = request.params.arguments as any; const params: any = { name: args.name || "New Track" }; const result = await executeCommand("add_track", params); if (result.error) { return { content: [{ type: "text", text: `Error: ${result.error}` }], isError: true }; } return { content: [{ type: "text", text: result.message || `Track "${params.name}" added successfully with ID ${result.trackId}` }] }; }
- src/index.ts:317-330 (registration)Registration of the 'add_track' tool in the list_tools response, including its name, description, and input schema.name: "add_track", description: "Add a new track to the project", inputSchema: { type: "object", properties: { name: { type: "string", description: "Name of the new track" } }, required: [] } }, {
- src/index.ts:76-84 (helper)Helper function used by the 'add_track' handler (and others) to send the action and params to the command file and retrieve the response from Synthesizer V Studio.async function executeCommand(action: string, params: any = {}): Promise<any> { const command = { action, ...params }; await writeCommand(command); return await readResponse(); }