LLM CLI Gateway
v1.17.1One MCP endpoint for Claude Code, Codex, Gemini, Grok and Mistral CLIs, with durable async jobs.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
validate_with_models
| Parameter | Type | Description |
|---|---|---|
question * | string | Question or content to validate. |
focus | string | What reviewers should pay attention to. |
judgeModel | Optional provider to run an explicit judge synthesis job. | |
models | array | Providers to ask. Defaults to Claude and Codex. |
second_opinion
| Parameter | Type | Description |
|---|---|---|
answer * | string | Answer to review. |
model | string | Provider to ask for the second opinion. |
question | string | Original question, if available. |
compare_answers
| Parameter | Type | Description |
|---|---|---|
answers * | array | Two or more answers to compare. |
question * | string | Question the answers respond to. |
red_team_review
| Parameter | Type | Description |
|---|---|---|
content * | string | Plan, answer, or document to challenge. |
models | array | Providers to ask for adversarial review. |
riskLevel | string | How aggressively to review. |
consensus_check
| Parameter | Type | Description |
|---|---|---|
claim * | string | Claim to check across providers. |
models | array | Providers to ask for agreement or disagreement. |
ask_model
| Parameter | Type | Description |
|---|---|---|
question * | string | Question for one provider. |
model | string | Provider to ask. |
synthesize_validation
| Parameter | Type | Description |
|---|---|---|
providerResults * | array | Terminal normalized provider results from job_result. |
question * | string | Original request that was validated. |
judgeModel | Provider to run the judge synthesis. |
list_available_models
job_status
| Parameter | Type | Description |
|---|---|---|
jobId * | string | Validation job ID. |
job_result
| Parameter | Type | Description |
|---|---|---|
jobId * | string | Validation job ID. |
maxChars | integer | Maximum result size. |
provider | string | Provider that produced the job, used for normalized validation output. |
claude_request
| Parameter | Type | Description |
|---|---|---|
addDir | array | Claude --add-dir: additional directories the CLI is allowed to read/write beyond the process cwd. Each entry is emitted as its own --add-dir instance. |
agent | string | Claude --agent: dispatch to a named single sub-agent. |
agents | object | Claude --agents: inline JSON map of agent name → { description, prompt, tools?, model? }. |
allowedTools | array | Allowed tools (['Bash(git:*)','Edit','Write']) |
appendSystemPrompt | string | Claude --append-system-prompt: append to the existing system prompt. |
approvalPolicy | string | Approval policy override |
approvalStrategy | string | Approval strategy |
continueSession | boolean | Continue active session |
correlationId | string | Request trace ID (auto if omitted) |
createNewSession | boolean | Force new session |
dangerouslySkipPermissions | boolean | DEPRECATED: prefer `permissionMode: "bypassPermissions"`. Maps to it when `permissionMode` is unset. |
disallowedTools | array | Disallowed tools |
effort | string | Claude --effort: low|medium|high|xhigh|max. |
excludeDynamicSystemPromptSections | boolean | Claude --exclude-dynamic-system-prompt-sections: trim dynamic context blocks from the system prompt. |
fallbackModel | string | Claude --fallback-model: model name to auto-fallback to when the default model is overloaded (effective only with --print, which the gateway always uses). |
forceRefresh | boolean | Bypass dedup and force a fresh CLI run even if a recent identical request exists |
forkSession | boolean | Claude --fork-session: branch from an existing session into a fresh fork. |
idleTimeoutMs | integer | Idle timeout in ms (min 30s, max 1h, omit=CLI default) |
jsonSchema | Claude --json-schema: JSON Schema literal (NOT a path) constraining structured output. Object values are JSON.stringify-d; string values are passed verbatim. Use with outputFormat='json'. | |
maxBudgetUsd | number | Claude --max-budget-usd: spend cap for this request in USD. |
maxTurns | integer | Claude --max-turns: cap on agent loop iterations. |
mcpServers | array | MCP servers exposed to Claude |
model | string | Model name or alias (e.g. sonnet, claude-sonnet-4-5-20250929, latest) |
optimizePrompt | boolean | Optimize prompt before execution |
optimizeResponse | boolean | Optimize response output |
outputFormat | string | Output format (text|json|stream-json). DEFAULT: stream-json — the gateway parses NDJSON usage events to extract input/output/cache_read/cache_creation tokens + cost + model, persists them to the fli… |
permissionMode | string | Claude --permission-mode: default|acceptEdits|plan|auto|dontAsk|bypassPermissions. `default` is a no-op (no flag emitted). |
prompt | string | Prompt text for Claude (mutually exclusive with promptParts) |
promptParts | object | Cache-aware structured prompt: { system?, tools?, context?, task, cacheControl? }. Use for repeated calls that share a stable prefix — `system`/`tools`/`context` are the stable head; `task` is the v… |
sessionId | string | Session ID (uses active if omitted) |
strictMcpConfig | boolean | Restrict Claude to provided MCP config only |
systemPrompt | string | Claude --system-prompt: replace the system prompt entirely. |
worktree | Slice λ: run this request inside a dedicated git worktree owned by the gateway. `true` creates a fresh worktree at `<repoRoot>/.worktrees/<uuid>` branched from HEAD. `{ name?, ref? }` lets the caller… |
codex_request
| Parameter | Type | Description |
|---|---|---|
addDir | array | Codex --add-dir <DIR>: additional writable workspace directories. Emitted once per entry on new sessions only; resume inherits the original session's writable-dir policy. |
approvalPolicy | string | Approval policy override |
approvalStrategy | string | Approval strategy |
askForApproval | string | Codex --ask-for-approval: untrusted|on-request|never. |
configOverrides | object | Codex -c key=value overrides. Keys: /^[a-zA-Z0-9._]+$/. Values: no CR/LF. |
correlationId | string | Request trace ID (auto if omitted) |
createNewSession | boolean | Force a fresh session (no resume) |
dangerouslyBypassApprovalsAndSandbox | boolean | Run Codex without approvals/sandbox |
ephemeral | boolean | Codex --ephemeral: do not persist the session to disk. |
forceRefresh | boolean | Bypass dedup and force a fresh CLI run even if a recent identical request exists |
fullAuto | boolean | DEPRECATED: prefer `sandboxMode` + `askForApproval`. Expands to `--sandbox workspace-write --ask-for-approval never`. |
idleTimeoutMs | integer | Idle timeout in ms (min 30s, max 1h, omit=CLI default) |
ignoreRules | boolean | Codex --ignore-rules: skip project rule files for this run. |
ignoreUserConfig | boolean | Codex --ignore-user-config: ignore ~/.codex/config.toml for this run. |
images | array | Codex -i <path>: image attachments. Each path must exist; missing paths fail fast. |
mcpServers | array | MCP server names for approval tracking (Codex manages its own MCP config) |
model | string | Model name or alias (e.g. gpt-5.4, latest) |
optimizePrompt | boolean | Optimize prompt before execution |
optimizeResponse | boolean | Optimize response output |
outputFormat | string | Codex output format. `json` emits --json (JSONL events) so token usage and cost are parsed and reported in the flight recorder. `text` is the default. |
outputSchema | Codex --output-schema. Pass a path (string) or an inline JSON Schema object; object is materialised to a 0o600 temp file under os.tmpdir() and deleted after the run. | |
profile | string | Codex --profile <name>: select a profile from ~/.codex/config.toml. |
prompt | string | Prompt text for Codex (mutually exclusive with promptParts) |
promptParts | object | Cache-aware structured prompt: { system?, tools?, context?, task }. Mutually exclusive with prompt. Stable parts hash into cache_state for prefix-discipline tracking. |
resumeLatest | boolean | Resume the most recent Codex session in the current cwd via `codex exec resume --last`. Ignored if sessionId is set. |
sandboxMode | string | Codex --sandbox: read-only|workspace-write|danger-full-access. |
search | boolean | Emit Codex --search to enable web search. |
sessionId | string | Codex session UUID to resume via `codex exec resume <ID>`. Must be a real Codex session ID (from `~/.codex/sessions/` or the `codex resume` picker). Gateway-generated `gw-*` IDs are rejected. |
useLegacyFullAutoFlag | boolean | Escape hatch: emit `--full-auto` directly instead of expanding (deprecated). |
workingDir | string | Codex -C/--cd <DIR>: working root for this session. Emitted on new sessions only; resume inherits the original session's cwd via CODEX_RESUME_FILTERED_FLAGS. |
worktree | Slice λ: run this request inside a dedicated git worktree owned by the gateway. `true` creates a fresh worktree at `<repoRoot>/.worktrees/<uuid>` branched from HEAD. `{ name?, ref? }` lets the caller… |
codex_fork_session
| Parameter | Type | Description |
|---|---|---|
prompt * | string | Prompt text for the forked Codex session |
askForApproval | string | Codex --ask-for-approval: untrusted|on-request|never. |
correlationId | string | Request trace ID (auto if omitted) |
forkLast | boolean | Fork from the most recent Codex session. Mutually exclusive with `sessionId`. |
idleTimeoutMs | integer | Idle timeout in ms (min 30s, max 1h, omit=CLI default) |
model | string | Model name or alias (e.g. gpt-5.5, latest) |
sandboxMode | string | Codex --sandbox: read-only|workspace-write|danger-full-access. |
sessionId | string | Codex session UUID to fork from. Mutually exclusive with `forkLast`. |
gemini_request
| Parameter | Type | Description |
|---|---|---|
adminPolicyFiles | array | Admin policy file paths (--admin-policy <path>, one per file). Paths must exist. |
allowedTools | array | Allowed tools (['Write','Edit','Bash']) |
approvalMode | string | Approval: default|auto_edit|yolo|plan |
approvalPolicy | string | Approval policy override |
approvalStrategy | string | Approval strategy |
attachments | array | Absolute file paths prepended as @<path> tokens to the prompt |
correlationId | string | Request trace ID (auto if omitted) |
createNewSession | boolean | Force new session |
forceRefresh | boolean | Bypass dedup and force a fresh CLI run even if a recent identical request exists |
idleTimeoutMs | integer | Idle timeout in ms (min 30s, max 1h, omit=CLI default) |
includeDirs | array | Additional workspace directories |
mcpServers | array | MCP server names passed to Gemini as --allowed-mcp-server-names |
model | string | Model name or alias (e.g. gemini-3-pro-preview, gemini-2.5-flash, pro, flash, latest) |
optimizePrompt | boolean | Optimize prompt before execution |
optimizeResponse | boolean | Optimize response output |
outputFormat | string | Gemini output format. `json` emits `-o json` (single JSON with usageMetadata). `stream-json` emits `-o stream-json` (NDJSON event stream — `init`/`message`/`result` lines, usage extracted from the t… |
policyFiles | array | Policy file paths (--policy <path>, one per file). Paths must exist. |
prompt | string | Prompt text for Gemini (mutually exclusive with promptParts) |
promptParts | object | Cache-aware structured prompt: { system?, tools?, context?, task }. Mutually exclusive with prompt. Stable parts hash into cache_state for prefix-discipline tracking. |
resumeLatest | boolean | Resume latest session |
sandbox | boolean | Run Gemini in sandbox mode (-s) |
sessionId | string | Session ID or 'latest' |
skipTrust | boolean | Emit `--skip-trust` so Gemini trusts the workspace for this session and skips the interactive trust prompt (Phase 4 slice γ). Required for headless runs in fresh workspaces. |
worktree | Slice λ: run this request inside a dedicated git worktree owned by the gateway. `true` creates a fresh worktree at `<repoRoot>/.worktrees/<uuid>` branched from HEAD. `{ name?, ref? }` lets the caller… |
grok_request
| Parameter | Type | Description |
|---|---|---|
allow | array | Grok --allow <RULE>: permission allow rules. Each entry is emitted as its own --allow instance (per `grok --help`: "Repeat to add multiple rules"). |
allowedTools | array | Allowed built-in tools (passed as --tools comma list) |
alwaysApprove | boolean | Auto-approve all tool executions (--always-approve) |
approvalPolicy | string | Approval policy override |
approvalStrategy | string | Approval strategy |
correlationId | string | Request trace ID (auto if omitted) |
createNewSession | boolean | Force new session |
deny | array | Grok --deny <RULE>: permission deny rules. Each entry is emitted as its own --deny instance (per `grok --help`: "Repeat to add multiple rules"). |
disallowedTools | array | Disallowed built-in tools (passed as --disallowed-tools comma list) |
effort | string | Grok effort level |
forceRefresh | boolean | Bypass dedup and force a fresh CLI run even if a recent identical request exists |
idleTimeoutMs | integer | Idle timeout in ms (min 30s, max 1h, omit=CLI default) |
maxTurns | integer | Grok `--max-turns N`: cap on agent-loop iterations for cost / latency control (Phase 4 slice δ). Bounded to safe integers ≤ 10000. |
mcpServers | array | MCP server names for approval tracking (Grok manages its own MCP config via `grok mcp`) |
model | string | Model name or alias (e.g. grok-build, latest) |
optimizePrompt | boolean | Optimize prompt before execution |
optimizeResponse | boolean | Optimize response output |
outputFormat | string | Output format (plain|json|streaming-json). Grok default is plain. |
permissionMode | string | Grok permission mode |
prompt | string | Prompt text for Grok (mutually exclusive with promptParts) |
promptParts | object | Cache-aware structured prompt: { system?, tools?, context?, task }. Mutually exclusive with prompt. Stable parts hash into cache_state for prefix-discipline tracking. |
reasoningEffort | string | Reasoning effort for reasoning models |
resumeLatest | boolean | Resume most recent Grok session in cwd (--continue) |
rules | string | Grok --rules <RULES>: extra rules to append to the system prompt. Supports `@file` prefix per `grok --help` to load from a file; gateway passes the value verbatim and lets Grok parse the prefix. |
sandbox | string | Grok --sandbox <PROFILE>: sandbox profile for filesystem and network access. Freeform per `grok --help` (no enum constraint on Grok 0.1.210); also settable via GROK_SANDBOX env var. Caller responsibil… |
sessionId | string | Session ID (user-provided CLI handle for --resume) |
systemPromptOverride | string | Grok --system-prompt-override <PROMPT>: replace the agent's system prompt entirely. Distinct from Claude's --system-prompt / --append-system-prompt (Grok has only one override flag, not a pair). |
workingDir | string | Grok --cwd <DIR>: working directory for this invocation. Lets headless callers run Grok against a directory other than the gateway process's cwd. |
worktree | Slice λ: run this request inside a dedicated git worktree owned by the gateway. `true` creates a fresh worktree at `<repoRoot>/.worktrees/<uuid>` branched from HEAD. `{ name?, ref? }` lets the caller… |
mistral_request
| Parameter | Type | Description |
|---|---|---|
addDir | array | Vibe --add-dir <DIR>: additional writable workspace directories. Each entry is emitted as its own --add-dir instance (Vibe states this flag may be specified multiple times). |
allowedTools | array | Allowlist of built-in tools — each emitted as a separate --enabled-tools <tool> flag |
approvalPolicy | string | Approval policy override |
approvalStrategy | string | Approval strategy |
correlationId | string | Request trace ID (auto if omitted) |
createNewSession | boolean | Force new session |
disallowedTools | array | Accepted for caller parity; Vibe has no deny-list flag, so values are ignored (a warning is logged). |
effort | string | Vibe effort level |
forceRefresh | boolean | Bypass dedup and force a fresh CLI run even if a recent identical request exists |
idleTimeoutMs | integer | Idle timeout in ms (min 30s, max 1h, omit=CLI default) |
maxPrice | number | Vibe `--max-price DOLLARS`: interrupt the session when cumulative cost crosses this cap (programmatic mode only, Phase 4 slice δ). Bounded to finite values ≤ 10000 USD. |
maxTokens | integer | Vibe `--max-tokens N`: cap cumulative prompt + completion tokens for the session (programmatic mode only). Bounded to safe integers ≤ 100000000. |
maxTurns | integer | Vibe `--max-turns N`: cap the agent-loop iteration count (programmatic mode only, Phase 4 slice δ). Bounded to safe integers ≤ 10000. |
mcpServers | array | MCP server names for approval tracking (Vibe manages its own MCP config via `vibe mcp`) |
model | string | Model alias (e.g. mistral-medium-3.5, latest). Resolved alias is injected via VIBE_ACTIVE_MODEL env var; Vibe has no --model flag. |
optimizePrompt | boolean | Optimize prompt before execution |
optimizeResponse | boolean | Optimize response output |
outputFormat | string | Output format for Vibe 2.x (text|json|streaming). Legacy aliases plain→text and stream-json→streaming are accepted. |
permissionMode | string | Vibe agent mode (default|plan|accept-edits|auto-approve|chat|explore|lean). Defaults to auto-approve for programmatic use. |
prompt | string | Prompt text for Mistral Vibe (mutually exclusive with promptParts) |
promptParts | object | Cache-aware structured prompt: { system?, tools?, context?, task }. Mutually exclusive with prompt. Stable parts hash into cache_state for prefix-discipline tracking. |
reasoningEffort | string | Reasoning effort for reasoning models |
resumeLatest | boolean | Resume most recent Vibe session in cwd (--continue) |
sessionId | string | Session ID (user-provided CLI handle for --resume). Current Vibe defaults session logging on; doctor flags explicit [session_logging] enabled = false. |
trust | boolean | Emit `--trust` so Vibe trusts the cwd for this invocation only (not persisted to trusted_folders.toml) and skips the interactive trust prompt (Phase 4 slice γ). |
workingDir | string | Vibe --workdir <DIR>: change to this directory before running. Single value (Vibe accepts one --workdir per invocation). |
worktree | Slice λ: run this request inside a dedicated git worktree owned by the gateway. `true` creates a fresh worktree at `<repoRoot>/.worktrees/<uuid>` branched from HEAD. `{ name?, ref? }` lets the caller… |
claude_request_async
| Parameter | Type | Description |
|---|---|---|
addDir | array | Claude --add-dir: additional directories the CLI is allowed to read/write beyond the process cwd. Each entry is emitted as its own --add-dir instance. |
agent | string | Claude --agent: dispatch to a named single sub-agent. |
agents | object | Claude --agents: inline JSON map of agent name → { description, prompt, tools?, model? }. |
allowedTools | array | Allowed tools (['Bash(git:*)','Edit','Write']) |
appendSystemPrompt | string | Claude --append-system-prompt: append to the existing system prompt. |
approvalPolicy | string | Approval policy override |
approvalStrategy | string | Approval strategy |
continueSession | boolean | Continue active session |
correlationId | string | Request trace ID (auto if omitted) |
createNewSession | boolean | Force new session |
dangerouslySkipPermissions | boolean | DEPRECATED: prefer `permissionMode: "bypassPermissions"`. Maps to it when `permissionMode` is unset. |
disallowedTools | array | Disallowed tools |
effort | string | Claude --effort: low|medium|high|xhigh|max. |
excludeDynamicSystemPromptSections | boolean | Claude --exclude-dynamic-system-prompt-sections: trim dynamic context blocks from the system prompt. |
fallbackModel | string | Claude --fallback-model: model name to auto-fallback to when the default model is overloaded (effective only with --print, which the gateway always uses). |
forceRefresh | boolean | Bypass dedup and force a fresh CLI run even if a recent identical request exists |
forkSession | boolean | Claude --fork-session: branch from an existing session into a fresh fork. |
idleTimeoutMs | integer | Idle timeout in ms (min 30s, max 1h, omit=CLI default) |
jsonSchema | Claude --json-schema: JSON Schema literal (NOT a path) constraining structured output. Object values are JSON.stringify-d; string values are passed verbatim. Use with outputFormat='json'. | |
maxBudgetUsd | number | Claude --max-budget-usd: spend cap for this request in USD. |
maxTurns | integer | Claude --max-turns: cap on agent loop iterations. |
mcpServers | array | MCP servers exposed to Claude |
model | string | Model name or alias (e.g. sonnet, claude-sonnet-4-5-20250929, latest) |
optimizePrompt | boolean | Optimize prompt before execution |
outputFormat | string | Output format (text|json|stream-json). DEFAULT: stream-json — same rationale as claude_request: keeps usage/cache/cost observable for cache_state aggregates. Override to 'text' only when raw stdout… |
permissionMode | string | Claude --permission-mode: default|acceptEdits|plan|auto|dontAsk|bypassPermissions. `default` is a no-op. |
prompt | string | Prompt text for Claude (mutually exclusive with promptParts) |
promptParts | object | Cache-aware structured prompt: { system?, tools?, context?, task, cacheControl? }. Same semantics as claude_request: stable head (system/tools/context) + volatile tail (task). Set `cacheControl: { sys… |
sessionId | string | Session ID (uses active if omitted) |
strictMcpConfig | boolean | Restrict Claude to provided MCP config only |
systemPrompt | string | Claude --system-prompt: replace the system prompt entirely. |
worktree | Slice λ: run this request inside a dedicated git worktree owned by the gateway. `true` creates a fresh worktree at `<repoRoot>/.worktrees/<uuid>` branched from HEAD. `{ name?, ref? }` lets the caller… |
codex_request_async
| Parameter | Type | Description |
|---|---|---|
addDir | array | Codex --add-dir <DIR>: additional writable workspace directories (repeat per entry). New sessions only. |
approvalPolicy | string | Approval policy override |
approvalStrategy | string | Approval strategy |
askForApproval | string | Codex --ask-for-approval: untrusted|on-request|never. |
configOverrides | object | Codex -c key=value overrides. Keys: /^[a-zA-Z0-9._]+$/. Values: no CR/LF. |
correlationId | string | Request trace ID (auto if omitted) |
createNewSession | boolean | Force a fresh session (no resume) |
dangerouslyBypassApprovalsAndSandbox | boolean | Run Codex without approvals/sandbox |
ephemeral | boolean | Codex --ephemeral. |
forceRefresh | boolean | Bypass dedup and force a fresh CLI run even if a recent identical request exists |
fullAuto | boolean | DEPRECATED: prefer `sandboxMode` + `askForApproval`. Expands to `--sandbox workspace-write --ask-for-approval never`. |
idleTimeoutMs | integer | Idle timeout in ms (min 30s, max 1h, omit=CLI default) |
ignoreRules | boolean | Codex --ignore-rules. |
ignoreUserConfig | boolean | Codex --ignore-user-config. |
images | array | Codex -i <path>: image attachments. |
mcpServers | array | MCP server names for approval tracking (Codex manages its own MCP config) |
model | string | Model name or alias (e.g. gpt-5.4, latest) |
optimizePrompt | boolean | Optimize prompt before execution |
outputFormat | string | Codex output format. `json` emits --json (JSONL events) for token usage extraction. |
outputSchema | Codex --output-schema. Pass a path (string) or an inline JSON Schema object. | |
profile | string | Codex --profile <name>. |
prompt | string | Prompt text for Codex (mutually exclusive with promptParts) |
promptParts | object | Cache-aware structured prompt: { system?, tools?, context?, task }. Mutually exclusive with prompt. Stable parts hash into cache_state for prefix-discipline tracking. |
resumeLatest | boolean | Resume the most recent Codex session in the current cwd via `codex exec resume --last`. Ignored if sessionId is set. |
sandboxMode | string | Codex --sandbox: read-only|workspace-write|danger-full-access. |
search | boolean | Emit Codex --search to enable web search. |
sessionId | string | Codex session UUID to resume via `codex exec resume <ID>`. Must be a real Codex session ID (from `~/.codex/sessions/` or the `codex resume` picker). Gateway-generated `gw-*` IDs are rejected. |
useLegacyFullAutoFlag | boolean | Escape hatch: emit `--full-auto` directly (deprecated). |
workingDir | string | Codex -C/--cd <DIR>: working root for this session. New sessions only; resume inherits the original session's cwd. |
worktree | Slice λ: run this request inside a dedicated git worktree owned by the gateway. `true` creates a fresh worktree at `<repoRoot>/.worktrees/<uuid>` branched from HEAD. `{ name?, ref? }` lets the caller… |
gemini_request_async
| Parameter | Type | Description |
|---|---|---|
adminPolicyFiles | array | Admin policy file paths (--admin-policy <path>, one per file). Paths must exist. |
allowedTools | array | Allowed tools (['Write','Edit','Bash']) |
approvalMode | string | Approval: default|auto_edit|yolo|plan |
approvalPolicy | string | Approval policy override |
approvalStrategy | string | Approval strategy |
attachments | array | Absolute file paths prepended as @<path> tokens to the prompt |
correlationId | string | Request trace ID (auto if omitted) |
createNewSession | boolean | Force new session |
forceRefresh | boolean | Bypass dedup and force a fresh CLI run even if a recent identical request exists |
idleTimeoutMs | integer | Idle timeout in ms (min 30s, max 1h, omit=CLI default) |
includeDirs | array | Additional workspace directories |
mcpServers | array | MCP server names passed to Gemini as --allowed-mcp-server-names |
model | string | Model name or alias (e.g. gemini-3-pro-preview, gemini-2.5-flash, pro, flash, latest) |
optimizePrompt | boolean | Optimize prompt before execution |
outputFormat | string | Gemini output format. `json` emits `-o json` (single JSON with usageMetadata). `stream-json` emits `-o stream-json` (NDJSON event stream — `init`/`message`/`result` lines, usage extracted from the t… |
policyFiles | array | Policy file paths (--policy <path>, one per file). Paths must exist. |
prompt | string | Prompt text for Gemini (mutually exclusive with promptParts) |
promptParts | object | Cache-aware structured prompt: { system?, tools?, context?, task }. Mutually exclusive with prompt. Stable parts hash into cache_state for prefix-discipline tracking. |
resumeLatest | boolean | Resume latest session |
sandbox | boolean | Run Gemini in sandbox mode (-s) |
sessionId | string | Session ID (user-provided CLI handle for --resume) |
skipTrust | boolean | Emit `--skip-trust` so Gemini trusts the workspace for this session and skips the interactive trust prompt (Phase 4 slice γ). Required for headless runs in fresh workspaces. |
worktree | Slice λ: run this request inside a dedicated git worktree owned by the gateway. `true` creates a fresh worktree at `<repoRoot>/.worktrees/<uuid>` branched from HEAD. `{ name?, ref? }` lets the caller… |
grok_request_async
| Parameter | Type | Description |
|---|---|---|
allow | array | Grok --allow <RULE>: permission allow rules. Each entry → its own --allow instance. |
allowedTools | array | Allowed built-in tools (passed as --tools comma list) |
alwaysApprove | boolean | Auto-approve all tool executions (--always-approve) |
approvalPolicy | string | Approval policy override |
approvalStrategy | string | Approval strategy |
correlationId | string | Request trace ID (auto if omitted) |
createNewSession | boolean | Force new session |
deny | array | Grok --deny <RULE>: permission deny rules. Each entry → its own --deny instance. |
disallowedTools | array | Disallowed built-in tools (passed as --disallowed-tools comma list) |
effort | string | Grok effort level |
forceRefresh | boolean | Bypass dedup and force a fresh CLI run even if a recent identical request exists |
idleTimeoutMs | integer | Idle timeout in ms (min 30s, max 1h, omit=CLI default) |
maxTurns | integer | Grok `--max-turns N`: cap on agent-loop iterations for cost / latency control (Phase 4 slice δ). Bounded to safe integers ≤ 10000. |
mcpServers | array | MCP server names for approval tracking (Grok manages its own MCP config via `grok mcp`) |
model | string | Model name or alias (e.g. grok-build, latest) |
optimizePrompt | boolean | Optimize prompt before execution |
outputFormat | string | Output format (plain|json|streaming-json). Grok default is plain. |
permissionMode | string | Grok permission mode |
prompt | string | Prompt text for Grok (mutually exclusive with promptParts) |
promptParts | object | Cache-aware structured prompt: { system?, tools?, context?, task }. Mutually exclusive with prompt. Stable parts hash into cache_state for prefix-discipline tracking. |
reasoningEffort | string | Reasoning effort for reasoning models |
resumeLatest | boolean | Resume most recent Grok session in cwd (--continue) |
rules | string | Grok --rules <RULES>: extra rules to append to the system prompt. Supports `@file` prefix; gateway passes the value verbatim. |
sandbox | string | Grok --sandbox <PROFILE>: sandbox profile for filesystem and network access. Freeform per `grok --help` (no enum constraint); also settable via GROK_SANDBOX env var. |
sessionId | string | Session ID (user-provided CLI handle for --resume) |
systemPromptOverride | string | Grok --system-prompt-override <PROMPT>: replace the agent's system prompt entirely. |
workingDir | string | Grok --cwd <DIR>: working directory for this invocation. Lets headless callers run Grok against a directory other than the gateway process's cwd. |
worktree | Slice λ: run this request inside a dedicated git worktree owned by the gateway. `true` creates a fresh worktree at `<repoRoot>/.worktrees/<uuid>` branched from HEAD. `{ name?, ref? }` lets the caller… |
mistral_request_async
| Parameter | Type | Description |
|---|---|---|
addDir | array | Vibe --add-dir <DIR>: additional writable workspace directories. Each entry is emitted as its own --add-dir instance. |
allowedTools | array | Allowlist of built-in tools — each emitted as a separate --enabled-tools <tool> flag |
approvalPolicy | string | Approval policy override |
approvalStrategy | string | Approval strategy |
correlationId | string | Request trace ID (auto if omitted) |
createNewSession | boolean | Force new session |
disallowedTools | array | Accepted for caller parity; Vibe has no deny-list flag, so values are ignored (a warning is logged). |
effort | string | Vibe effort level |
forceRefresh | boolean | Bypass dedup and force a fresh CLI run even if a recent identical request exists |
idleTimeoutMs | integer | Idle timeout in ms (min 30s, max 1h, omit=CLI default) |
maxPrice | number | Vibe `--max-price DOLLARS`: interrupt the session when cumulative cost crosses this cap (programmatic mode only, Phase 4 slice δ). Bounded to finite values ≤ 10000 USD. |
maxTokens | integer | Vibe `--max-tokens N`: cap cumulative prompt + completion tokens for the session (programmatic mode only). Bounded to safe integers ≤ 100000000. |
maxTurns | integer | Vibe `--max-turns N`: cap the agent-loop iteration count (programmatic mode only, Phase 4 slice δ). Bounded to safe integers ≤ 10000. |
mcpServers | array | MCP server names for approval tracking (Vibe manages its own MCP config via `vibe mcp`) |
model | string | Model alias (resolved into VIBE_ACTIVE_MODEL env var — Vibe has no --model flag) |
optimizePrompt | boolean | Optimize prompt before execution |
outputFormat | string | Output format for Vibe 2.x (text|json|streaming). Legacy aliases plain→text and stream-json→streaming are accepted. |
permissionMode | string | Vibe agent mode (default|plan|accept-edits|auto-approve|chat|explore|lean). Defaults to auto-approve for programmatic use. |
prompt | string | Prompt text for Mistral Vibe (mutually exclusive with promptParts) |
promptParts | object | Cache-aware structured prompt: { system?, tools?, context?, task }. Mutually exclusive with prompt. Stable parts hash into cache_state for prefix-discipline tracking. |
reasoningEffort | string | Reasoning effort for reasoning models |
resumeLatest | boolean | Resume most recent Vibe session in cwd (--continue) |
sessionId | string | Session ID (user-provided CLI handle for --resume). Current Vibe defaults session logging on; doctor flags explicit [session_logging] enabled = false. |
trust | boolean | Emit `--trust` so Vibe trusts the cwd for this invocation only (not persisted to trusted_folders.toml) and skips the interactive trust prompt (Phase 4 slice γ). |
workingDir | string | Vibe --workdir <DIR>: change to this directory before running. Single value per invocation. |
worktree | Slice λ: run this request inside a dedicated git worktree owned by the gateway. `true` creates a fresh worktree at `<repoRoot>/.worktrees/<uuid>` branched from HEAD. `{ name?, ref? }` lets the caller… |
llm_job_status
| Parameter | Type | Description |
|---|---|---|
jobId * | string | Async job ID from *_request_async |
llm_job_result
| Parameter | Type | Description |
|---|---|---|
jobId * | string | Async job ID from *_request_async |
maxChars | integer | Max chars returned per stream |
llm_job_cancel
| Parameter | Type | Description |
|---|---|---|
jobId * | string | Async job ID from *_request_async |
llm_process_health
approval_list
| Parameter | Type | Description |
|---|---|---|
cli | string | Optional CLI filter |
limit | integer | Max number of approval records |
list_models
| Parameter | Type | Description |
|---|---|---|
cli | string | CLI filter (claude|codex|gemini|grok|mistral) |
cli_versions
| Parameter | Type | Description |
|---|---|---|
cli | string | CLI filter (claude|codex|gemini|grok|mistral) |
upstream_contracts
| Parameter | Type | Description |
|---|---|---|
cli | string | CLI filter (claude|codex|gemini|grok|mistral) |
probeInstalled | boolean | When true, run local --help probes and compare advertised flags |
cli_upgrade
| Parameter | Type | Description |
|---|---|---|
cli * | string | CLI to upgrade |
dryRun | boolean | When true, return the upgrade plan without running it |
target | string | Package tag/version/target to install (default: latest) |
timeoutMs | integer | Upgrade timeout in ms when dryRun=false |
session_create
| Parameter | Type | Description |
|---|---|---|
cli * | string | CLI type (claude|codex|gemini|grok|mistral) |
description | string | Session description |
setAsActive | boolean | Set as active session |
session_list
| Parameter | Type | Description |
|---|---|---|
cli | string | CLI filter (claude|codex|gemini|grok|mistral) |
session_set_active
| Parameter | Type | Description |
|---|---|---|
cli * | string | CLI type (claude|codex|gemini|grok|mistral) |
sessionId * | string | null | Session ID (null to clear) |
session_delete
| Parameter | Type | Description |
|---|---|---|
sessionId * | string | Session ID |
session_get
| Parameter | Type | Description |
|---|---|---|
sessionId * | string | Session ID |
session_clear_all
| Parameter | Type | Description |
|---|---|---|
cli | string | CLI filter (claude|codex|gemini|grok|mistral) |