crosspad_kill
Stops a single PC simulator by control port or exact PID, sends SIGTERM then SIGKILL, and leaves non-CrossPad processes alone; use all=true only to sweep every built simulator process.
Instructions
[PC sim] Stop one PC simulator: the process listening on the control port (port, default 19840 / CROSSPAD_REMOTE_PORT) or the exact pid. Never matches by name; a process holding the port that is not a CrossPad binary is reported and left alone, so another instance (the user's own) survives. all=true is the explicit sweep over every process running the built binary. SIGTERM, waits up to 3 s, then SIGKILL. Returns the killed PIDs and whether anything still answers on the port.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "crosspad_kill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Stop every process running the built simulator binary, whatever its port. Default false — it takes the user's instance too. | |
| pid | No | Stop exactly this PID (it must be a CrossPad simulator). For an instance that never got its control port. | |
| port | No | Simulator control port (default: CROSSPAD_REMOTE_PORT of this server, else 19840). Needed to address a second instance. | |
| platform | No | Platform — currently only 'pc' is supported here. | pc |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| docs | No | ||
| next | No | ||
| error | No | ||
| notice | No | ||
| success | Yes | ||
| killed_pids | Yes | ||
| was_running | Yes |