Skip to main content
Glama

pause

Stop music playback in Strudel MCP Server to control audio generation and live coding sessions.

Instructions

Pause playback

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

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: {} } },
  • 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' ];

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