clear_queue
Clear the audio playback queue to cancel pending text-to-speech synthesis tasks and stop scheduled voice playback.
Instructions
再生キューをクリア
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/queue.ts:54-63 (handler)The actual implementation of the clear() method that clears the queue. It clears the shared state for the client and empties the tasks array.
async clear(): Promise<void> { // キューに残っているタスクの共有状態を削除 try { await this.sharedState.clearAllUsageForClient(); } catch (error) { console.error("Failed to clear shared state:", error); } this.tasks = []; } - src/index.ts:215-225 (handler)The handler case for 'clear_queue' tool that calls queue.clear() and returns a success message in Japanese.
case "clear_queue": { await queue.clear(); return { content: [ { type: "text", text: "キューをクリアしました", }, ], }; } - src/index.ts:106-113 (registration)The tool registration for 'clear_queue' with description and empty input schema.
{ name: "clear_queue", description: "再生キューをクリア", inputSchema: { type: "object", properties: {}, }, }, - src/index.ts:109-112 (schema)The input schema for clear_queue tool - an empty object with no properties.
inputSchema: { type: "object", properties: {}, },