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).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to encode or encoded text to decode. | |
| decode | No | Decode instead of encode (default false). |