mask_text
Mask sensitive text like emails or credit cards by revealing only a few characters at the start and end, hiding the rest with a custom character.
Instructions
Mask parts of sensitive text while keeping ends visible.
Parameters:
text — Text to mask (e.g. email, credit card, phone).
mask_char — Character for masking (default: '*').
visible_start — Characters to leave visible at start (default: 1).
visible_end — Characters to leave visible at end (default: 1).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| mask_char | No | * | |
| visible_start | No | ||
| visible_end | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |