Redact and sanitize logs
redact_logRedacts and neutralizes secrets, credentials, PII, terminal control characters, log-forging patterns, and oversized structured records in logs to prevent sensitive data exposure and log injection.
Instructions
Neutralize log forging, terminal controls, secrets, credentials, sensitive object keys, optional high-precision PII patterns, and oversized structured records with logcage.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "redact_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pii | No | ||
| mode | No | ||
| text | No | ||
| record | No | ||
| maxKeys | No | ||
| maxDepth | No | ||
| maxNodes | No | ||
| maxLength | No | ||
| redactPaths | No | ||
| extraSecrets | No | ||
| sensitiveKeys | No | ||
| maxArrayLength | No |