Estimate Roleplay Context Window Budget
estimate_roleplay_contextEstimate total context window usage across character settings, Memo, Lorebook entries, and multi-turn history to check fit for 8K–32K or custom token limits.
Instructions
Estimate total context window usage for a character setting, editable long-story Memo, constant/triggered Lorebook entries, and multi-turn conversation history across 8K/16K/24K/32K (or custom) context windows.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "estimate_roleplay_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memoText | No | Editable long-story Memo / summary notes text. | |
| scenario | No | Scene or scenario setup text. | |
| description | No | Character description text. | |
| personality | No | Character personality traits text. | |
| firstMessage | No | Opening greeting message. | |
| historyTurns | No | Number of conversation turns in history (default: 20). | |
| systemPrompt | No | Custom system prompt text. | |
| contextWindows | No | Target context window sizes in tokens (default: [8192, 16384, 24576, 32768]). | |
| lorebookEntries | No | Lorebook / Worldbook entries with constant or triggered active state. | |
| avgTokensPerTurn | No | Average tokens per turn (default: 220). | |
| reservedOutputTokens | No | Tokens reserved for model output (default: 512). | |
| postHistoryInstructions | No | Post-history instruction text. |