codex_compact
Reduce context size in a running Codex thread by compressing its history; starts an asynchronous job and returns a jobId for tracking.
Instructions
压缩已有 Codex thread 的上下文,适用于长会话;作为一个异步任务返回 jobId。
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": {
"threadId": "<threadId>"
},
"name": "codex_compact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| threadId | Yes |