rle_encode_decode
Encode numeric arrays into run-length runs or decode runs back into numeric arrays to compress or reconstruct sequence data.
Instructions
Run-length encode a numeric array into runs, or decode runs back to a numeric array.
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": {
"operation": "<operation>"
},
"name": "rle_encode_decode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Numeric array to encode | |
| runs | No | Runs to decode | |
| operation | Yes | Operation (default encode) |