seq
Generate a numeric sequence with configurable start, increment, and end values, output as JSON for easy integration.
Instructions
Print a sequence of numbers as JSON with configurable start, increment, and end values. Read-only, no side effects. Returns JSON with the number sequence array. Use to generate numeric sequences or ranges. Not for repeating a constant string — use 'yes' for fixed repetition. See also 'yes', 'printf'.
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": {
"numbers": "<numbers>"
},
"name": "seq"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | Write sequence text without a JSON envelope. | |
| format | No | printf-style numeric format, for example %%.2f. | |
| numbers | Yes | [FIRST [INCREMENT]] LAST. | |
| encoding | No | Output encoding (default: utf-8). Use 'auto' for BOM/autodetection. | utf-8 |
| increment | No | Increment used with one or two positional numbers. | |
| max_items | No | Maximum items to generate. | |
| separator | No | Raw output separator. | |
| show_encoding | No | Include encoding detection metadata in JSON result. | |
| encoding_errors | No | How to handle encoding errors (default: replace). | replace |
| encoding_profile | No | Locale-aware encoding fallback profile for auto-detection. |