set_affinity
Assigns a process to specific logical processors, applying CPU affinity to all its threads until it exits.
Instructions
Sets which logical processors a process may run on (its affinity), all its threads at once, until it ends. get_cpu lists the processors; set_priority and set_efficiency_mode change how much time it gets rather than where. Critical processes and Anabolic are refused; a game or anti-cheat program needs force=true after the user agreed. Another user's process needs Anabolic's full access (cap_sys_nice).
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>",
"cpus": "<cpus>"
},
"name": "set_affinity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | Yes | The process ID (list_processes gives it). | |
| cpus | Yes | The logical processors it may run on, from 0 to 63 (get_cpu lists them). | |
| force | No | True only after the user agreed to the risk this tool described. |