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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cs_agent_wait_message"
}
}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. |