Skip to main content
Glama

play

Start playing musical patterns in Strudel for AI-powered music generation and live coding. Control browser automation to create, analyze, and store TidalCycles patterns.

Instructions

Start playing pattern

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Registration of the 'play' tool including name, description, and input schema in the tools list returned by getTools()
    name: 'play', description: 'Start playing pattern', inputSchema: { type: 'object', properties: {} } },
  • MCP tool handler in executeTool switch statement - delegates to StrudelController.play()
    case 'play': return await this.controller.play();
  • Core implementation of play functionality: sends keyboard shortcut to Strudel browser to start playback and updates internal state
    async play(): Promise<string> { if (!this._page) throw new Error('Browser not initialized. Run init tool first.'); // Always use keyboard shortcut for speed await this._page.keyboard.press('ControlOrMeta+Enter'); // Reduced wait time await this._page.waitForTimeout(100); this.isPlaying = true; return 'Playing'; }

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/williamzujkowski/strudel-mcp-server'

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