Compact a Codex thread
codex_compactSummarize a long Codex thread's history to free context window space. Runs in the background to preserve thread continuity while reducing context load.
Instructions
Summarize a long Codex thread's history to free up its context window. Runs in the background.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"thread_id": "<thread_id>"
},
"name": "codex_compact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread_id | Yes |