Skip to main content
Glama

list_tracks

Lists all vocal tracks in a Synthesizer V AI project to manage and edit vocal arrangements for music production.

Instructions

List all tracks in the current project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • src/index.ts:253-260 (registration)
    Registration of the 'list_tracks' tool in the ListToolsRequestSchema handler, including its name, description, and empty input schema.
    {
      name: "list_tracks",
      description: "List all tracks in the current project",
      inputSchema: {
        type: "object",
        properties: {},
        required: []
      }
  • The handler function for the 'list_tracks' tool within the CallToolRequestSchema switch statement. It executes the command via executeCommand and returns the tracks data as a JSON string.
    case "list_tracks": {
      const tracks = await executeCommand("list_tracks");
    
      return {
        content: [{
          type: "text",
          text: JSON.stringify(tracks, null, 2)
        }]
      };
    }
  • Helper function executeCommand used by the list_tracks handler to send the 'list_tracks' action to the Synthesizer V Studio Lua script via file communication and retrieve the response.
    async function executeCommand(action: string, params: any = {}): Promise<any> {
      const command = {
        action,
        ...params
      };
    
      await writeCommand(command);
      return await readResponse();
    }
  • Type definition for Track, used in handling responses from list_tracks.
    interface Track {
      id: number;
      name: string;
      noteCount: number;
      notes?: Note[];
    }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ocadaruma/mcp-svstudio'

If you have feedback or need assistance with the MCP directory API, please join our Discord server