Ask local Codex
ask_codexStart a read-only Codex job asynchronously and receive a job ID to retrieve the result later.
Instructions
Start a read-only local Codex job and return its job ID immediately.
The project is a path relative to the configured Codex root. The server rejects paths outside that root and always runs Codex in read-only mode. Use get_codex_job to retrieve the final result.
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": "ask_codex"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| attempt | No | ||
| project | No | . | |
| step_id | No | ||
| workflow_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |