Continue Codex session
codex_continueResume a prior Codex session for a workspace so you can send follow-up prompts and continue coding work with the same sandbox and model.
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. | |
| effort | No | Optional reasoning effort for this turn, as in codex_ask. Omit to use the level in your codex config. | |
| 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 |