clear_thoughts
Remove all recorded thoughts to declutter and reset your mental workspace, accessible via the Local Utilities MCP Server interface.
Instructions
Clear all recorded thoughts
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp/think.ts:103-112 (handler)The handler function for the 'clear_thoughts' tool. It counts the current thoughts, clears the thoughts array, and returns a confirmation message indicating how many thoughts were cleared.async () => { const count = thoughts.length; thoughts = []; // Reset the array return { content: [{ type: "text", text: `Cleared ${count} recorded thoughts.` }] }; }
- src/mcp/think.ts:99-113 (registration)The registration of the 'clear_thoughts' tool using server.tool(), including its description and inline handler.// Register clear_thoughts command server.tool( "clear_thoughts", "Clear all recorded thoughts", async () => { const count = thoughts.length; thoughts = []; // Reset the array return { content: [{ type: "text", text: `Cleared ${count} recorded thoughts.` }] }; } );
- src/mcp/think.ts:34-36 (helper)A helper method in ThinkToolInternalLogic class that clears the thoughts array, though not directly used by the tool handler.clearThoughts(): void { this.thoughts = []; }