Skip to main content
Glama

codex_resume

Resume an interrupted Codex CLI session and send a new prompt to continue the task without restarting.

Instructions

Resume a previous Codex session non-interactively (codex exec resume) and optionally send a new prompt.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
allNoSearch across all directories, not just the current one.
cwdNoWorking directory for the codex process.
envNoAdditional environment variables for codex.
modelNoModel the agent should use. May be forced by the server's model-override environment variable.
promptNoPrompt to send after resuming the session.
ephemeralNoSkip persisting session files to disk. Defaults to true.
extraArgsNoAdditional raw codex CLI arguments appended to the command.
sessionIdNoConversation/session id (UUID) or thread name. Omit to resume the most recent session.
timeoutMsNoProcess timeout in milliseconds.
ignoreRulesNoDo not load user or project execpolicy .rules files.
outputSchemaNoPath to a JSON Schema file describing the expected final response shape.
skipGitRepoCheckNoAllow running outside a Git repository. Defaults to true.
outputLastMessageNoPath to a file where the final agent message should be written.
dangerouslyBypassApprovalsAndSandboxNoSkip all confirmation prompts and sandboxing. Only use in an already-isolated environment.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description must carry the behavioral disclosure burden. It only reveals that execution is non-interactive and that a new prompt may be sent; it does not disclose side effects, whether code may be executed, sandbox implications, or what happens to the resumed session. For a tool with a destructive-looking bypass parameter, this is a significant transparency gap.

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?

The description is a single efficient sentence with no filler, and it front-loads the core operation and command. It earns its place, though it is so sparse that it leaves important behavioral and usage context unaddressed, which prevents a perfect conciseness score.

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

Completeness2/5

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

This is a 14-parameter tool with no annotations, no output schema, and a one-sentence description. The description does not explain session selection defaults, output location, process behavior, safety posture, or relationship to the many sibling tools, so it is not complete enough for an agent to invoke it confidently in varied contexts.

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?

The schema provides 100% coverage of all 14 parameters with meaningful descriptions, so the baseline is 3. The description itself adds very little parameter-specific meaning beyond the 'new prompt' idea, but it does not need to because the schema already documents each parameter well.

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 states a specific verb and resource: 'Resume a previous Codex session non-interactively' and even names the underlying command `codex exec resume`. It is clearly distinct from sibling tools by mentioning 'previous session,' but it does not explicitly contrast itself with codex_run or codex_fork, so it falls just short of a 5.

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?

The description implies when to use it: when resuming a previous Codex session rather than starting a new one. However, it gives no explicit guidance about when not to use it or when to prefer a sibling tool such as codex_run or codex_fork, so the usage context is only implied.

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