runlength_process
Encode text with run-length compression (aaabbb to 3a3b) or decode it back to the original string, useful for compacting repeated characters in browser automation and agent workflows.
Instructions
Run-length encode or decode text (e.g. aaabbb to 3a3b).
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": {
"text": "<text>"
},
"name": "runlength_process"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to encode or encoded text to decode. | |
| decode | No | Decode instead of encode (default false). |