peer_message
Send natural-language messages to peer Codex threads for host-to-host collaboration on tasks.
Instructions
Send a natural-language message to a peer Codex thread.
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": {
"peerId": "<peerId>",
"message": "<message>"
},
"name": "peer_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| peerId | Yes | ||
| message | Yes | ||
| threadId | No | ||
| startNewThread | No | ||
| maxResponseChars | No | ||
| waitForCompletion | No | When true, keep the WebSocket open and return once this turn completes or the quiet wait window ends. | |
| waitWindowSeconds | No | Quiet wait window. Reaching it returns turnCompleted false, not a task failure. |