Dispatch Prompt, Wait & Read Agent Output
agent_dispatch_and_readSubmit a prompt to a Herdr agent, wait for it to settle, then return its final status and terminal output in one call.
Instructions
High-level one-shot helper for Gemini: submit a prompt to a Herdr agent, wait until it reaches a settled state (idle, done, or blocked), and immediately return both its final status and unwrapped terminal output.
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": {
"target": "<target>",
"text": "<text>"
},
"name": "agent_dispatch_and_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Prompt text to submit to the agent. | |
| lines | No | Number of output lines to read back upon completion (default 200). | |
| source | No | Output snapshot source (default 'recent-unwrapped'). | |
| target | Yes | Unique live agent name or hosting pane ID (for example 'reviewer' or 'w1:p2'). | |
| timeout_ms | No | Maximum wait time in milliseconds (default 300000 = 5 minutes). |