codex
Start a direct command-line AI conversation and get a resumable thread ID to continue the session later.
Instructions
Start a direct Codex CLI conversation and return a resumable thread ID.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| model | No | ||
| prompt | Yes | ||
| sandbox | No | read-only | |
| web_search | No | ||
| reasoning_effort | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| result | Yes | ||
| metadata | No | ||
| sessionId | Yes |