run
Execute a Codex CLI task in an isolated scratch directory, returning the final answer and a manifest of generated files so you can review artifacts before copying them into the workspace.
Instructions
Run one Codex CLI task (codex exec) in an isolated scratch directory. Returns Codex's final message plus an artifact manifest (path, bytes, sha256 per file) — file bodies are NEVER included. Codex can read the workspace but can only write inside its own scratch directory. Read the artifact paths yourself, review them, and only then copy what you approve into the workspace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Optional explicit list of artifact paths (relative to the artifact root) to report. Omit to report every file the run created. | |
| model | No | Optional Codex model id for this call (for example gpt-6-astra for plan review). Omit to use the deployment default from CODEX_MCP_MODEL, or Codex's own configuration. | |
| prompt | Yes | The complete, self-contained task for Codex. It does not share this conversation, so include everything it needs (paths it may read, the exact question, and the output file it should write). | |
| timeoutMs | No | Deadline in milliseconds for the whole run. Defaults to the deployment value (CODEX_MCP_TIMEOUT_MS, else 900000). |