mask_text
Mask sensitive text such as email, credit card numbers, or phone numbers by replacing middle characters while keeping the start and end visible for readability.
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).
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": "mask_text"
}
}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 |