Codex Explain Code
codex_explain_codeExplain code, logic, or architecture in depth to understand unfamiliar codebases, onboard new developers, or document complex systems.
Instructions
Ask Codex to deeply explain code, logic, or architecture. Useful for understanding unfamiliar code, onboarding, or documenting complex systems.
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": {
"target": "<target>"
},
"name": "codex_explain_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Depth of explanation: overview, detailed, or full execution trace | detailed |
| target | Yes | What to explain: file path, function name, module, or code snippet | |
| context | No | Additional context about the codebase | |
| threadId | No | Continue a previous Codex conversation: pass the threadId returned by an earlier call. Omit to start a fresh thread. | |
| workingDirectory | No |