consult_codex_with_stdin
Pipe stdin content to Codex AI for processing with a prompt, enabling automated code analysis and batch review in CI/CD pipelines.
Instructions
Consult Codex with stdin content piped to prompt - pipeline-friendly execution.
Similar to 'echo "content" | codex exec "prompt"' - combines stdin with prompt.
Perfect for CI/CD workflows where you pipe file contents to the AI.
Args:
stdin_content: Content to pipe as stdin (e.g., file contents, diff, logs)
prompt: The prompt to process the stdin content
directory: Working directory (required)
format: Output format - "text", "json", or "code" (default: "json")
timeout: Optional timeout in seconds (overrides env var, recommended: 60-120)
Returns:
Formatted response based on format parameterInput Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stdin_content | Yes | ||
| prompt | Yes | ||
| directory | Yes | ||
| format | No | json | |
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |