Skip to main content
Glama

stop

Stop music playback in Strudel.cc to pause audio generation and live coding sessions.

Instructions

Stop playback

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Schema definition for the 'stop' tool, specifying name, description, and empty input schema.
    { name: 'stop', description: 'Stop playback', inputSchema: { type: 'object', properties: {} }
  • Registration of the ListToolsRequestSchema handler which returns all tools including 'stop' via getTools().
    this.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: this.getTools() }));
  • Handler logic for the 'stop' tool (shared with 'pause'), delegating execution to StrudelController.stop() method.
    case 'pause': case 'stop': return await this.controller.stop();
  • Core implementation of stop functionality: sends Ctrl+. keyboard shortcut to Strudel browser page to stop playback and updates local state.
    async stop(): 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+Period'); this.isPlaying = false; return 'Stopped'; }

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