sanitize_har_archive
Scrub HAR archives with correlation-preserving HMAC-SHA256 tags to redact secrets across headers, cookies, queries, bodies, and Base64 responses for safe AI debugging of auth race conditions.
Instructions
Scrub a browser HTTP Archive (HAR 1.2 JSON or single HAR request entry) with correlation-preserving HMAC-SHA256 token tags (e.g. [JWT#1_9f4c · alg:HS256 · EXPIRED -10m] vs [JWT#2_3a81 · alg:HS256 · exp:+15m]) across headers, cookies, query strings, JSON/form bodies, and Base64 responses so AI agents can debug auth race conditions with 0% secret exposure.
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": {
"harJson": "<harJson>"
},
"name": "sanitize_har_archive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| harJson | Yes | Raw HAR 1.2 JSON string (containing log.entries or a single HAR entry object) to scrub locally. | |
| scrubIpv4 | No | When true (default), scrubs IPv4 addresses into correlated [IPV4#N_hash] tags. | |
| scrubEmail | No | When true (default), scrubs email addresses into correlated [EMAIL#N_hash] tags. | |
| scrubPhone | No | When true (default), scrubs phone numbers into correlated [PHONE#N_hash] tags. | |
| sessionSalt | No | Optional deterministic salt string to align HMAC-SHA256 correlation hashes across multiple HAR captures. | |
| slowThresholdMs | No | Latency threshold in milliseconds used to flag SLOW_REQUEST waterfall entries. | |
| referenceTimeIso | No | Optional ISO-8601 timestamp override used when evaluating JWT expiration deltas. |