start_new_conversation
Start a read-only Codex session for code analysis, review, and Q&A. Returns a thread_id to continue the conversation later.
Instructions
Start a new conversation with OpenAI Codex CLI.
Runs codex CLI in read-only sandbox mode and returns a thread_id for continuing the conversation later.
Limitations:
Runs in read-only sandbox — cannot modify files or execute shell commands.
Use only for read-only tasks: code reading, analysis, and Q&A.
When to use:
Analyzing the structure or behavior of a codebase
Code review or root cause analysis of bugs
Generating explanations or documentation drafts for code
Getting refactoring or architecture suggestions
Args: prompt: Prompt to send to codex. Use @filepath to mention files. working_directory: Directory path for codex to work in (optional).
Returns: Dict with thread_id and response.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| working_directory | No |