Send Prompt to Agent
agent_promptSubmit a prompt to an idle or completed terminal agent using bracketed paste and Enter, optionally waiting for idle, done, or blocked; requests are rejected immediately if an approval dialog is open.
Instructions
Submit a prompt with bracketed paste + Enter to an idle/done agent. Rejects immediately with 'agent_blocked' if the agent is waiting on an approval dialog. Set wait=true to block until the agent settles into idle, done, or blocked.
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_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Prompt text to submit to the agent. | |
| wait | No | Wait for the agent to finish its turn (reach idle, done, or blocked). Default false. | |
| until | No | Optional explicit target states after wait=true; omit to use Herdr defaults (idle, done, blocked). | |
| target | Yes | Unique live agent name or hosting pane ID (for example 'reviewer' or 'w1:p2'). | |
| timeout_ms | No | Timeout in milliseconds when wait=true (default 120000). |