cs_agent_wait_message
Blocking wait for a coding agent turn to complete after sending a message. Retrieve terminal replies, permission requests, or handle timeout with a bounded wait.
Instructions
Preferred blocking wait after cs_agent_send for one turn. For multiple turns, send all independent turns first and use cs_agent_wait_many. Returns a terminal reply, a permission request requiring cs_agent_respond_permission, a terminal turn without a reply, or a bounded timeout.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| turnId | No | Turn id returned by cs_agent_send. | |
| waitMs | No | Wait for at most this many milliseconds, up to 30000; call again after timeout. | |
| messageId | No | Request message id returned by cs_agent_send; resolved to its turn. |