Delegate Task to Project Space Agent Panel
herdr_delegate_agentDelegates a task to a chosen coding agent in a Herdr project space, reusing an idle panel or starting one, then submits the prompt and reads output.
Instructions
One-shot workflow for delegating tasks to claude, codex, agy, grok, etc. in the Herdr space matching 'project_name': stops with 'workspace_not_found' if the space does not exist; reuses an existing idle/done panel of 'agent_kind' in that space; stops with 'agent_busy_or_blocked' if an existing panel of that kind is busy/blocked; splits and starts a new agent panel only if none exists yet; aligns the agent's internal session name to 'session_name' (sending '/new' or '/clear' plus '/rename <session_name>' without --wait when mismatched); then submits 'prompt' and reads 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": {
"project_name": "<project_name>",
"agent_kind": "<agent_kind>",
"prompt": "<prompt>"
},
"name": "herdr_delegate_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional absolute project working directory path. | |
| wait | No | Wait for the agent turn to settle (default true). | |
| lines | No | Number of output lines to read back upon completion (default 200). | |
| prompt | Yes | Task instructions or prompt text to send to the agent. | |
| agent_args | No | Optional extra CLI arguments passed if starting a new agent panel. | |
| agent_kind | Yes | Coding agent kind to use (for example 'claude', 'codex', 'agy', 'grok'). | |
| timeout_ms | No | Maximum wait duration in milliseconds (default 300000 = 5 minutes). | |
| project_name | Yes | Project directory name matching the target Herdr space label (for example 'svg-motion-forge'). | |
| session_name | No | Unified session name matching the Gemini session title + 3-letter suffix (for example 'motion-forge-001-kpx'). |