nice
Run a command with adjusted CPU scheduling priority. Use positive niceness values to lower priority for background tasks, reducing CPU impact.
Instructions
Run a command with adjusted CPU scheduling priority (niceness). Executes the given command as a subprocess, captures bounded stdout/stderr, and enforces a safety timeout. Use --dry_run to preview without execution. Positive niceness lowers priority for background tasks; negative values may require elevated privileges. Use to reduce CPU impact of background work. Not for I/O buffering control — use 'stdbuf'. Not for hangup immunity — use 'nohup'. Not for time-bound execution — use 'timeout'. See also 'stdbuf', 'nohup', 'timeout'.
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": "nice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Report without running the command. | |
| timeout | No | Safety timeout for the command. | |
| adjustment | No | Niceness adjustment. | |
| command_args | No | Command and arguments to run. | |
| max_output_bytes | No | Maximum captured stdout/stderr bytes each. |