sc_stop_all
Stop all currently playing audio synthesis immediately to manage server lifecycle and control real-time sound generation.
Instructions
Stop all currently playing synths immediately
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:473-486 (handler)The handler logic for the 'sc_stop_all' tool. It checks if the SuperCollider server is booted and, if so, executes the SuperCollider command 'Server.default.freeAll;' to free all synths, stopping all sounds.case 'sc_stop_all': { if (!scServer.getBooted()) { return { content: [{ type: 'text', text: 'Error: SuperCollider server is not running.' }], isError: true, }; } await scServer.executeCode('Server.default.freeAll;'); return { content: [{ type: 'text', text: 'All synths stopped' }], }; }
- src/index.ts:189-196 (schema)The tool schema definition for 'sc_stop_all', including name, description, and empty input schema (no parameters required). This is part of the tools array used for tool listing and validation.{ name: 'sc_stop_all', description: 'Stop all currently playing synths immediately', inputSchema: { type: 'object', properties: {}, }, },
- src/index.ts:200-202 (registration)Registration of all tools, including 'sc_stop_all', via the ListToolsRequestSchema handler that returns the tools array.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools, }));