Compact Claude Code TUI Context
companion_tui_compactAsk the visible Claude Code TUI to run /compact with context-preserving instructions, keeping important information while reducing conversation size.
Instructions
Ask the visible Claude Code TUI to run /compact with cc-in-codex-aware preservation instructions. Prefer companion_tui_compact_check first.
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": "companion_tui_compact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| instructions | No | Optional extra instructions for what Claude Code should preserve during /compact. |