Continue Codex session
codex_continueResume an existing Codex session in a workspace to send a follow-up prompt, keeping its original sandbox, model, and thread context. Pass the same workspace so Codex still sees the repo.
Instructions
Continue the Codex session: resumes the thread rooted at this workspace (codex exec resume), so pass the same workspace= as the ask (without it the
sub-agent sees no repo). It resumes the session the last codex_ask there started,
else the newest on-disk session for that directory. The session keeps its original
sandbox and model. Autonomous agent: trusted prompts only.
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_continue"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| watch | No | If true, open the live "watch" view streaming codex's steps as it works (same viewer as codex_ask). Default false. | |
| prompt | Yes | Follow-up message for the existing session. | |
| timeout_s | No | Max seconds to wait for codex to complete. Default 180. | |
| workspace | No | Working root used by the prior session. Defaults to the server cwd. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |