Analyze with Codex
codex_analyzeStart or resume a persistent, read-only Codex analysis thread for a project. Reuse the session key to continue prior analysis without losing workspace context.
Instructions
Start or resume a persistent Codex thread in a read-only filesystem sandbox.
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": {
"session_key": "<session_key>",
"prompt": "<prompt>"
},
"name": "codex_analyze"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Required on first use; later calls use the saved workspace. | |
| prompt | Yes | ||
| session_key | Yes | Stable logical session name. Reuse it to continue the same Codex thread. | |
| retry_failed | No | Explicitly start a replacement only when an earlier attempt never obtained a thread ID. |