nproc
Retrieve the number of available CPU cores to make parallelism decisions in agent workflows. Returns JSON with core count or plain integer with --raw.
Instructions
Return the number of available CPU processing units. Read-only, no side effects. Returns JSON with the core count; use --raw for plain integer. Use to make parallelism decisions in agent workflows. Not for system runtime info — use 'uptime'. Not for architecture info — use 'arch' or 'uname'. See also 'uptime', 'arch'.
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": "nproc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | Write the processor count without a JSON envelope. |