redact_har
Creates a sanitized HAR copy for safe sharing by masking authorization headers, cookies, tokens, passwords, API keys, query strings, and body secrets. Review the output before sharing.
Instructions
Write a sanitized copy of a HAR that is safe to share: masks Authorization,
Cookie/Set-Cookie, tokens/passwords/API keys in headers, query strings, JSON and form
bodies (and JWT/GitHub/AWS-shaped values anywhere). Streamed, so large files work.
NEVER overwrites: fails if output exists. output must be inside the allowed
directories. Review the result before sharing: secrets with innocent names buried in
URL paths or HTML cannot be recognised.
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>",
"output": "<output>"
},
"name": "redact_har"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| output | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |