reset_thinking
Clear the sequential thinking state to restart problem-solving processes, enabling structured analysis and alternative reasoning paths for complex tasks.
Instructions
Reset the sequential thinking state to 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 and inline handler function. Clears the thinkingSession state, saves it, and returns a reset confirmation.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)}` }] }; } } );
- src/index-backup.ts:239-268 (registration)Registers the 'reset_thinking' tool with the MCP server using server.tool(), providing name, description, empty schema, and handler function."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)}` }] }; } } );