nproc
Get the number of available CPU cores to determine parallelism 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'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | Write the processor count without a JSON envelope. |