Skip to main content
Glama

codex_resume

Continue a previous Codex session synchronously by session ID or 'last', sending follow-up instructions while preserving full conversation context.

Instructions

Continue a previous Codex session synchronously by session_id (or 'last' for the most recent session) with follow-up instructions, preserving Codex's full conversation context.

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": {
      "session_id": "<session_id>",
      "prompt": "<prompt>"
    },
    "name": "codex_resume"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoWorking directory for the resumed session.
modelNoOptional model override for Codex. Omit to use the model selected in the Codex Bridge UI panel or ~/.codex/config.toml.
configNoOptional Codex config overrides in 'key=value' TOML format (passed as -c).
imagesNoOptional image file paths to attach to the prompt.
promptYesFollow-up instructions to send to the resumed Codex session.
goal_idNoOptional persistent goal_id to associate this Codex execution with (auto-links session_id and iteration count).
session_idYesSession UUID returned by a prior codex_run/codex_start, or 'last' to resume the most recent session.
milestone_idNoOptional milestone_id (e.g. 'm1') inside goal_id that this execution is working on.
timeout_secondsNoMaximum seconds to wait before aborting (default 600).
reasoning_effortNoOptional reasoning effort override for Codex. Omit to use the level selected in the Codex Bridge UI panel or Codex default.
skip_git_repo_checkNoAllow Codex to run outside a Git repository (defaults to UI panel setting / true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses that the call is synchronous and that Codex's full conversation context is preserved, which tells the agent this is a blocking, stateful continuation. It says nothing about what happens on timeout/abort, whether execution has side effects on the workspace, or what the call returns.

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

Conciseness5/5

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

A single sentence with zero filler, front-loading the action and the identifier before the qualifier clauses. Nothing is repeated or padding.

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 an 11-parameter, side-effecting tool with no annotations and no output schema, the description covers identity and mode but omits return values and failure/timeout behavior, which the agent cannot learn anywhere else. Adequate as a pointer, but not complete for a tool of this complexity.

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 one of the 11 parameters is already documented in the schema, including 'last' semantics and the timeout default. The description only restates session_id/'last' and the follow-up prompt, adding no syntax or interaction detail beyond the structured fields; baseline 3 applies.

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 gives a specific verb and resource ('Continue a previous Codex session'), names the keying parameter (session_id or 'last'), and states the operating mode ('synchronously'). It implies but never names the boundary against codex_run/codex_start, so the differentiation is inferable rather than explicit.

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

Usage Guidelines4/5

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

'Continue a previous ... with follow-up instructions' clearly establishes the context in which this tool is the right one, versus starting fresh. It offers no explicit exclusion (e.g. 'do not use for a new task, use codex_run'), so the agent must infer the alternative from the word 'previous'.

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