dsh_wait
Wait for runs sent with dsh_send to finish and return their state and final reply, including when a run stops to ask a person. Wait on multiple run ids at once and continue with the returned cursor.
Instructions
Wait for a run sent with dsh_send to end and return its state and final reply. Prefer the background wait_command from dsh_send if your client wakes you when a background command exits: it costs no turns. It also returns at once when the run stops to ask a person: needs_input answer (reply with dsh_answer) or harness-ui (an approval in the Harness window). Each call waits up to 50 s; if it returns timed_out: true, call dsh_wait again with the same run_id, without a progress note. Parallel runs: all ids in run_ids, never one by one; returns once any ends or asks (ended; the rest in still_running); then wait again with the rest plus your fixes. A run in a session with a Harness goal is followed on until the goal stops, with every round since the run began. With session_id instead of run_id it follows that session's Harness goal (see until) without sending anything; it also returns when Harness needs a person or will not go on by itself. Pass back the cursor each result gives.
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": "dsh_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| until | No | Harness goal: goal (default) reports once when it stops; turn (only if the user asked for progress reports) at a round end once every_minutes passed since the last report, with every round since | |
| cursor | No | The cursor from the previous result (nothing is reported twice or missed) | |
| run_id | No | Run id from dsh_send | |
| run_ids | No | Several run ids, to wait for whichever ends first | |
| session_id | No | Follow this session's Harness goal instead of waiting for a run (no message is sent) | |
| every_minutes | No | With until turn: least minutes between reports |