factor
Decompose non-negative integers into their prime factors. Returns a JSON array of prime factors for each input number.
Instructions
Compute the prime factorization of given non-negative integers. Read-only, no side effects. Returns JSON with an array of prime factors for each input number. Use to decompose integers into prime components. Not for general arithmetic — use 'expr' for calculations. See also 'expr'.
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": "factor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | Write factor lines without a JSON envelope. | |
| numbers | No | Integers to factor. Defaults to whitespace tokens from stdin. | |
| max_value | No | Safety cap for absolute input values. |