create_thread
Create a retained Codex session in an existing working directory, optionally with an initial prompt, to enable continued agent messaging via the App Server.
Instructions
Create a retained session in an existing cwd, optionally with an initial prompt.
Requires approval of this action and sandbox. No worktree or persistent Goal is created. Approval policy is never. Omitted model/reasoning use configured defaults. Supply only an App Server project ID, never assume a Desktop saved-project ID is interchangeable. Returns actual settings and IDs; verify Desktop association separately. Reusing request_id returns its receipt without resending. A failed/unknown operation may have created a thread.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | ||
| model | No | ||
| title | No | ||
| prompt | No | ||
| sandbox | No | read-only | |
| request_id | Yes | ||
| app_server_project_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||