anonymize_file
Redacts sensitive content from a file on disk before it reaches an LLM or other boundary, replacing credentials, secrets, and PII with typed placeholders and returning category counts.
Instructions
Minimiza el contenido de un archivo (nota, código, log, ticket) antes de
que cruce una frontera. Igual que anonymize pero leyendo del disco.
Args: path: ruta del archivo a minimizar. secrets_file: ruta opcional de un .env con secretos conocidos (detección determinista por igualdad exacta).
Returns: {"anonymized_text": str, "counts": {categoria: n}, "total": int}.
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": {
"path": "<path>"
},
"name": "anonymize_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| secrets_file | No |