kill_all_processes_code
Kill all processes matching a specified pattern to terminate multiple running instances at once. Supports custom signals and excludes the current process by default.
Instructions
Kill all processes matching a pattern (use with caution)
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": {
"pattern": "<pattern>"
},
"name": "kill_all_processes_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signal | No | Signal to send (default: SIGTERM) | SIGTERM |
| pattern | Yes | Pattern to match process names or commands | |
| excludeOwn | No | Whether to exclude the current process |