Skip to main content
Glama

Continue a Codex session

codex_continue

Resume a Codex session by session ID with a follow-up prompt to address review feedback, preserving the existing context.

Instructions

Resume an existing Codex session by sessionId with a follow-up prompt — typically review feedback that Codex should address. Preserves Codex context.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdYesAbsolute path of the workspace Codex should work in
modelNoCodex model override
promptYesFollow-up instruction, e.g. review findings to fix
sandboxNoCodex sandbox policy (default: workspace-write)workspace-write
terminalNoOpen a Terminal window streaming live progress (default: env CODEX_MCP_TERMINAL=1)
sessionIdYesSession/thread id returned by a previous codex_execute call
timeoutMsNoMax execution time per attempt in ms; auto-resume may add attempts (default: 60 minutes)
writeNotesNoPersist a markdown summary of this run to <cwd>/.codex-flow/notes/<sessionId>.md (default false).
reasoningEffortNoReasoning effort override for the selected model

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
diffYes
runIdYes
usageYes
errorsYes
statusYes
stderrYes
abortedYes
liveLogYes
attemptsNo
commandsYes
exitCodeYes
timedOutYes
warningsYes
notesPathYes
sessionIdYes
turnCountYes
attributionYes
fileChangesYes
parseErrorsYes
agentMessageYes
resumeReasonsNo
sawCompletionYes
schemaVersionYes
unknownEventsYes
outputTruncatedYes
Behavior3/5

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

No annotations present, so description carries full burden. It mentions 'preserves context' but does not disclose side effects (e.g., sandbox permissions, file writes, terminal output). The schema covers some details, but the description itself lacks deeper behavioral traits like auth needs or rate limits.

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?

Extremely concise at two sentences. The first sentence clearly states the action and method; the second adds the key benefit of context preservation. No fluff, front-loaded.

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?

Despite having 9 parameters and an output schema, the description omits important context like the dependency on codex_execute to obtain sessionId, or the streaming behavior indicated by the terminal parameter. It is adequate but leaves gaps for a complex tool.

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 coverage is 100% with detailed parameter descriptions. The tool description adds no extra meaning beyond 'sessionId' and 'prompt'. Baseline 3 is appropriate since schema does the heavy lifting, but the description could briefly highlight key optional params.

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

Purpose5/5

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

Clearly states the verb 'Resume' and the resource 'Codex session' with the method 'by sessionId with a follow-up prompt'. It distinguishes from siblings like codex_execute (which starts new sessions) and codex_sessions (which lists them) by emphasizing resuming an existing session and preserving context.

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?

Explicitly says 'Resume an existing session' and gives a typical use case 'review feedback'. This implies when to use (when you have a sessionId) and implicitly when not (for new sessions, use codex_execute). No explicit alternatives or exclusions, but context is clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/anhnguyen0905/codex-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server