Run Command or Script in Dedicated Project Shell Panel
herdr_run_shellRun shell commands or scripts in a reusable Herdr shell panel for a specified project, reusing an idle panel or creating one and returning exit code and output.
Instructions
One-shot workflow for executing commands or scripts in a dedicated reusable shell panel (default label 'gemini-shell') inside the Herdr space matching 'project_name': stops with 'workspace_not_found' if the space does not exist; reuses the existing 'gemini-shell' panel if idle (or stops with 'shell_panel_busy' if a foreground process is still running); splits and labels a new 'gemini-shell' panel on first use; executes 'command' and returns 'exit_code' and 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>",
"command": "<command>"
},
"name": "herdr_run_shell"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional absolute working directory to cd into before running. | |
| wait | No | Wait for completion and return exit_code + output (default true; set false for background servers). | |
| lines | No | Number of output lines to read back (default 200). | |
| command | Yes | Shell command or script invocation to run in the dedicated shell panel. | |
| timeout_ms | No | Timeout in milliseconds when wait=true (default 120000). | |
| panel_label | No | Label of the reusable shell panel in that space (default 'gemini-shell'). | |
| project_name | Yes | Project directory name matching the target Herdr space label (for example 'svg-motion-forge'). |