limit_process
Caps a process and its child processes to a specified CPU share and private memory limit on Windows; excess memory requests fail until the process exits or the cap is lifted.
Instructions
Holds a process, and the processes it starts from now on, to a share of the machine's CPU and to an amount of private memory (Windows job objects: a cap the scheduler keeps, whatever the priority). Past the memory limit its requests for more fail, and most programs then stop with an error. Lasts until it exits or Anabolic quits; lift_limit takes it away. Windows' core processes and anti-cheat programs are refused.
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": {
"pid": "<pid>"
},
"name": "limit_process"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | The process ID (list_processes gives it). | |
| force | No | True only after the user agreed to the risk this tool described. | |
| memory_gb | No | The most private memory it may commit, GB, with what it starts. | |
| cpu_percent | No | The most of the whole machine's CPU it may use, percent (1 to 99), as list_processes counts it. |