sequential_thinking
Record numbered thinking steps for structured reasoning, enabling complex problems to be broken into sequential steps with branching and revision. Manage session history, reset when needed, and finalize to persist outcomes to Memory Bank.
Instructions
Record a numbered thinking step for structured reasoning, or reset session history. Use this to break complex problems into sequential steps with optional branching and revision. The raw thought text is NOT returned — only metadata. Call finalize_thinking_session when done to persist outcomes to Memory Bank. Set reset:true to clear thinking history instead of recording a thought.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thought | No | The thinking step content (will NOT be returned in the response). Not required if reset:true. | |
| nextThoughtNeeded | No | Whether another thinking step is needed after this one. Not required if reset:true. | |
| thoughtNumber | No | Current thought number (>= 1). Not required if reset:true. | |
| totalThoughts | No | Estimated total number of thoughts (>= 1, auto-adjusts upward). Not required if reset:true. | |
| isRevision | No | Whether this thought revises a previous one | |
| revisesThought | No | The thought number being revised (when isRevision is true) | |
| branchFromThought | No | The thought number to branch from | |
| branchId | No | Identifier for the branch | |
| needsMoreThoughts | No | Explicit signal that the total should be increased | |
| sessionId | No | Session identifier to isolate thinking state across tasks | |
| reset | No | If true, resets the session(s) instead of recording a thought. If sessionId is provided, resets only that session. |