Send a signal to a session
terminal_signalSends a POSIX signal to a session's process group to interrupt, stop, or force-kill a running command; terminates the process tree on Windows.
Instructions
Send a POSIX signal to the session process group. Use SIGINT to interrupt a running command, SIGTERM to ask it to stop, or SIGKILL to force it. On Windows the process tree is terminated.
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": {
"id": "<id>"
},
"name": "terminal_signal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Session id (for example "term_1a2b3c4d") or the friendly name given at spawn time. | |
| signal | No | Signal to send. Default SIGINT. |