cmd_stop
Stops a Waymark command run: withdraws queued or approval-waiting runs and force-kills running processes with their child processes, then reports final status.
Instructions
Ends one command run. A run that still waits for approval or is queued is withdrawn and never starts. A running one is killed together with every process it started: a forced stop, so the program cannot clean up or save state. It then waits up to 8 seconds and reports the final state like cmd_wait. A run that already finished is left as it is and the reply gives its status; an unknown run id is an error. WHEN TO USE: to end an app that keeps running (run, py_run, node_run), a hung build or test, or a request you no longer want. For a program Waymark did not start that holds a port use cmd_proc stop_port; to find run ids use cmd_list.
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": {
"runId": "<runId>"
},
"name": "cmd_stop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guide | No | true: put the commands guide first in the result. Use on your first commands call, or when told it changed. | |
| runId | Yes | The run number to end, from a cmd_* result or cmd_list, for example 12. |