Stop a background run
sh_killStop a background process by its run ID, sending a signal to the entire process group. Idempotent; returns 'already_exited' if the process already stopped.
Instructions
Stop a background run started with sh_run background:true, by id. Signals the whole process group (so a dev server's children die too). SIGTERM (the default) escalates to SIGKILL after 2s if the process ignores it. Killing an id whose process has ALREADY exited is not an error — it returns already_exited (idempotent).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The background run id returned by sh_run (e.g. cmd7). | |
| signal | No | Signal to send. SIGTERM escalates to SIGKILL after 2s. | SIGTERM |