opencode_wait
Wait for a session turn to complete by observing /message and /active endpoints, ensuring you can synchronize actions after the turn finishes.
Instructions
Wait for a session turn to complete by observing /message + /active.
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": {
"sessionId": "<sessionId>"
},
"name": "opencode_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| directory | No | Project directory to target. Optional; defaults to the server default project. | |
| messageId | No | ||
| sessionId | Yes | ||
| pollIntervalMs | No | ||
| timeoutSeconds | No |