stop
Stop music playback in Strudel.cc to pause audio generation and live coding sessions.
Instructions
Stop playback
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
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: {} }
- src/server/EnhancedMCPServerFixed.ts:571-573 (registration)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();
- src/StrudelController.ts:230-238 (handler)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'; }