---
name: "xpay-clear-thought-reset-session"
description: "Reset thought history and branches for a specific session or all sessions.

Use this tool to clear accumulated state when:
- Starting a new unrelated reasoning task
- Cleaning up after completing a reasoning session
- Preventing state pollution between different tasks
- Managing memory in long-running server instances

If sessionId is provided, only that specific session is reset.
If sessionId is omitted, ALL sessions are reset (use with caution)."
version: "1.0.0"
price: "$0.01/call"
provider: "Clear Thought"
---

# Reset Session

Reset thought history and branches for a specific session or all sessions.

Use this tool to clear accumulated state when:
- Starting a new unrelated reasoning task
- Cleaning up after completing a reasoning session
- Preventing state pollution between different tasks
- Managing memory in long-running server instances

If sessionId is provided, only that specific session is reset.
If sessionId is omitted, ALL sessions are reset (use with caution).

**Provider:** Clear Thought
**Price:** $0.01/call
**Pricing model:** Flat rate per call

## When to Use

Use this tool when you need to reset thought history and branches for a specific session or all sessions.

use this tool to clear accumulated state when:
- starting a new unrelated reasoning task
- cleaning up after completing a reasoning session
- preventing state pollution between different tasks
- managing memory in long-running server instances

if sessionid is provided, only that specific session is reset.
if sessionid is omitted, all sessions are reset (use with caution).. This is part of the Clear Thought provider on xpay✦.

## MCP Connection

Connect to xpay✦ to access this tool (and 1+ others):

```json
{
  "mcpServers": {
    "xpay": {
      "url": "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
    }
  }
}
```

For Claude Code:
```bash
claude mcp add --transport http xpay "https://mcp.xpay.sh/mcp?key=YOUR_API_KEY"
```

## How to Execute

Use the xpay✦ meta-tools to run this tool:

1. **`xpay_details`** — Get full input schema: `xpay_details("clear-thought/reset_session")`
2. **`xpay_run`** — Execute: `xpay_run("clear-thought/reset_session", { ...inputs })`

## Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `sessionId` | string | No | Optional session identifier to reset. If not provided, resets ALL sessions. |

## Pricing

- **Cost:** $0.01/call
- **Balance check:** Use `xpay_balance` to check remaining credits
- Get your API key at [xpay.tools](https://xpay.tools/account/settings/api-keys/) — $5 free credits included

## Related Skills

- [Clear Thought (all tools)](https://xpay.tools/skills/clear-thought/SKILL.md) — 2 tools
- [Clear Thought](https://xpay.tools/skills/clear-thought/clear-thought/SKILL.md) — $0.01/call

## Links

- Tool page: https://xpay.tools/clear-thought/reset-session/
- Provider: https://xpay.tools/clear-thought/
- All tools: https://xpay.tools/explore
