terminal_interrupt
Stop the command running in a session while keeping the shell alive. Sends Ctrl+C, then terminates stubborn child processes if they ignore the interrupt.
Instructions
Stop the command running in a session, keeping the shell alive.
Sends Ctrl+C first. Native Windows programs often ignore the control character inside a pseudo-console, so any child process still running after a short grace period is terminated together with its own children. The shell itself is preserved.
Args: session_id: Session returned by terminal_start. force: Skip the grace period and terminate child processes immediately.
Returns: session_id, sent, running and the list of terminated pids.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| session_id | Yes |