clear_thoughts
Remove all stored thoughts from the system. Use this to reset your recorded notes.
Instructions
Clear all recorded thoughts
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp/think.ts:34-36 (handler)The clearThoughts() method on the ThinkToolInternalLogic class that resets the thoughts array.
clearThoughts(): void { this.thoughts = []; } - src/mcp/think.ts:99-113 (handler)The 'clear_thoughts' MCP tool registration with its async handler that clears all recorded thoughts and returns a count.
// 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:99-113 (registration)Registration of the 'clear_thoughts' tool on the MCP server using server.tool().
// 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.` }] }; } ); - build/mcp/think.js:62-72 (handler)Compiled handler for 'clear_thoughts' MCP tool that clears thoughts and returns count.
// 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.` }] }; });