Wait for an opencode subagent
waitPause execution until a background opencode subagent finishes, then return its result; accepts agent IDs from before MCP server restarts.
Instructions
Wait for a background opencode subagent and return its result. agent_ids from before a restart of the MCP server still work.
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": {
"agent_id": "<agent_id>"
},
"name": "wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | ||
| timeout_seconds | No | Return early if still running |