codex_send_message
Send a user message to an existing Codex chat session. Returns after turn acceptance; poll codex_get_turn_status to retrieve messages and completion.
Instructions
Compatibility layer low-level write tool: send a new user message into an existing Codex persisted chat via app-server thread/resume + turn/start. Returns after turn/start is accepted; poll codex_get_turn_status for messages and completion. For durable long-running tasks and client-timeout resilience, prefer codex_submit_task(operation_type='send_message').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | ||
| project_id | No | ||
| message | Yes | ||
| mode | No | normal | |
| timeout_seconds | No | ||
| first_message_timeout_seconds | No | Deprecated and ignored. This tool now returns immediately after turn/start; use codex_get_turn_status for messages. | |
| first_message_max_chars | No | ||
| approval_policy | No | on-request | |
| collaboration_mode | No | ||
| sandbox | No | read-only |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| agentGuidance | No | ||
| agentGuidanceText | No | ||
| recoveryAttemptState | No |