pause
Stop music playback in Strudel MCP Server to control audio generation and live coding sessions.
Instructions
Pause playback
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The handler logic for the 'pause' tool within the executeTool switch statement. It calls this.controller.stop() to pause playback. Note that it shares the implementation with the 'stop' tool.case 'stop': return await this.controller.stop();
- The tool definition including name, description, and input schema (empty object, no parameters required). This is part of the tools array returned by getTools() for tool listing and registration.{ name: 'pause', description: 'Pause playback', inputSchema: { type: 'object', properties: {} } },
- src/server/EnhancedMCPServerFixed.ts:571-573 (registration)Registration of the ListTools handler which exposes all tools including 'pause' via getTools().this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: this.getTools() }));
- The general CallToolRequestSchema handler that dispatches to executeTool based on tool name, with performance monitoring.const result = await this.perfMonitor.measureAsync( name, () => this.executeTool(name, args) );
- 'pause' is listed in tools requiring browser initialization.const toolsRequiringInit = [ 'write', 'append', 'insert', 'replace', 'play', 'pause', 'stop', 'clear', 'get_pattern', 'analyze', 'analyze_spectrum', 'analyze_rhythm', 'transpose', 'reverse', 'stretch', 'humanize', 'generate_variation', 'add_effect', 'add_swing', 'set_tempo', 'save', 'undo', 'redo', 'validate_pattern_runtime' ];