Archive Codex Agent
agent_archiveArchive idle worker threads to free up subagent pool resources. Ensure active turns are interrupted before archiving.
Instructions
Archive an idle worker thread. Active turns must be interrupted first.
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": {
"agentId": "<agentId>"
},
"name": "agent_archive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agentId | Yes |