reset_thinking
Clear the current thinking session to start fresh, enabling structured sequential problem-solving by resetting reasoning paths for complex analysis.
Instructions
Clear the current thinking session and start fresh
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index-backup.ts:238-268 (handler)The complete implementation of the reset_thinking tool, including registration via server.tool and the inline async handler function that resets the thinkingSession state, saves it, and returns a confirmation message.server.tool( "reset_thinking", "Clear the current thinking session and start fresh", {}, async () => { try { const previousSteps = thinkingSession.currentSteps.length; thinkingSession = { currentSteps: [], totalSteps: 0, isComplete: false }; await saveThinkingState(); return { content: [{ type: "text", text: `🗑️ **Thinking Reset**\n\nPrevious session cleared (${previousSteps} steps removed).\nReady for fresh sequential thinking.` }] }; } catch (error) { return { content: [{ type: "text", text: `❌ **Error resetting thinking**: ${error instanceof Error ? error.message : String(error)}` }] }; } } );