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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server/EnhancedMCPServerFixed.ts:129-132 (registration)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();
- src/StrudelController.ts:212-223 (handler)Core implementation of play functionality: sends keyboard shortcut to Strudel browser to start playback and updates internal stateasync 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'; }