Skip to main content
Glama

codex_resume_session

Resume an existing Codex session with a new prompt while keeping prior conversation history, workspace context, and tool capabilities; optionally switch models for that turn.

Instructions

Resume and continue an existing Codex session with a new prompt. Keeps previous conversation history, workspace context, and tool capabilities. You can optionally switch models for this turn.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "prompt": "<prompt>"
    },
    "name": "codex_resume_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNoOptional model override (e.g. gemini-3.8-flash-high, deepseek-flash, gpt-6.1-sol, gpt-6-astra, etc.).
promptYesNew instruction or message to send to the Codex session.
sandboxNoSandbox policy (default: danger-full-access).
session_idNoSession ID (UUID) to resume. If omitted, the most recent session is resumed (--last).
working_dirNoWorkspace directory root for execution.
timeout_secondsNoMaximum runtime in seconds (default: 300 = 5 minutes).
dangerously_bypass_approvalsNoSkip all confirmation prompts (default: true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full burden. It does disclose a genuinely useful behavioral trait — that conversation history, workspace context, and tool capabilities are preserved — but it says nothing about the risky defaults baked into the schema (dangerously_bypass_approvals defaults to true, sandbox defaults to danger-full-access) or about execution timeouts.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with purpose followed by state-preservation behavior and the model override note. There is no filler, though the third sentence is the weakest and largely restates what the model parameter schema already covers.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a seven-parameter execution tool with no annotations and no output schema, the description covers purpose and state continuity but leaves out the safety-relevant defaults and says nothing about what a resumed run returns or how timeout/approval behavior affects the call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so every parameter is already documented in the schema, which sets the baseline at 3. The description adds only marginal meaning beyond that, notably that a model change applies 'for this turn', which clarifies the scope of the model override.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb+resource combination ('Resume and continue an existing Codex session with a new prompt') and names the key state that carries over. It is clear on its own, but it never distinguishes itself from the sibling codex_fork_session, which an agent could easily confuse with resuming.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by 'existing session' and 'new prompt', so an agent can infer this is for continuing prior work rather than starting fresh. However, there is no explicit when-to-use vs. when-not, no mention of codex_fork_session as the alternative for branching, and no stated prerequisites such as needing a valid session_id.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.