codex_start_thread_compaction
Initiates thread context compaction to reduce memory usage and improve performance, returning an action identifier for polling completion status.
Instructions
Start Codex context compaction for a known thread through codex-app-server thread/compact/start. Poll codex_get_thread_compaction_status with the returned actionId.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread_id | Yes | ||
| project_id | No | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| agentGuidance | No | ||
| agentGuidanceText | No | ||
| recoveryAttemptState | No |