run_codex_prompt
Execute a Codex CLI prompt locally through a secure MCP interface, returning structured automation output. Supports configurable working directory, sandboxing, and approval policies for controlled execution.
Instructions
Run a prompt via local Codex CLI (codex exec) and return structured automation output.
2Bot always uses non-interactive mode and sends the prompt over stdin.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| model | No | ||
| prompt | Yes | ||
| profile | No | ||
| sandbox | No | read-only | |
| add_dirs | No | ||
| ephemeral | No | ||
| allow_edits | No | ||
| timeout_sec | No | ||
| approval_policy | No | ||
| include_event_log | No | ||
| skip_git_repo_check | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||