code_workspace_codex_thread_action
Rename, archive, unarchive, compact, or rollback a Codex thread within a workspace. Use a JSON payload to specify the action details.
Instructions
Perform a thread-level Codex action.
Args: action: One of: rename, archive, unarchive, compact, rollback body: JSON object payload.
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": {
"workspace_id": "<workspace_id>",
"thread_id": "<thread_id>",
"action": "<action>"
},
"name": "code_workspace_codex_thread_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | {} | |
| action | Yes | ||
| thread_id | Yes | ||
| workspace_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |