sc_quit
Stop the audio synthesis server and release system resources when sound generation is complete.
Instructions
Quit the SuperCollider audio server and clean up resources.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:266-279 (handler)The handler function for the 'sc_quit' tool. Checks if the SuperCollider server is booted, quits it using scServer.quit(), resets synthDefsLoaded flag, and returns success or error message.case 'sc_quit': { if (!scServer.getBooted()) { return { content: [{ type: 'text', text: 'SuperCollider server is not running' }], }; } await scServer.quit(); synthDefsLoaded = false; return { content: [{ type: 'text', text: 'SuperCollider server quit successfully' }], }; }
- src/index.ts:52-59 (schema)The tool definition including name, description, and input schema (empty object) for 'sc_quit'. This is part of the tools array returned by listTools.{ name: 'sc_quit', description: 'Quit the SuperCollider audio server and clean up resources.', inputSchema: { type: 'object', properties: {}, }, },
- src/index.ts:200-202 (registration)Registration of the listTools handler that returns the array of all tools, including 'sc_quit'.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools, }));