redact_text
Replace text matching a pattern in your document with a customizable placeholder. Optionally use regular expressions for advanced matching.
Instructions
Redact text matching pattern throughout the document.
Args: pattern: Text or regex pattern to find replacement: Replacement text (default: [REDACTED]) use_regex: Whether to use regex matching
Returns: Count of redactions or error message
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": {
"pattern": "<pattern>"
},
"name": "redact_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes | ||
| use_regex | No | ||
| replacement | No | [REDACTED] |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |