scan_api_collection_secrets
Audit Postman Collection/Environment JSON, HAR captures, or Bruno files for leaked tokens, API keys, and credentials before git commit, with line numbers and redacted previews.
Instructions
Audit Postman Collection/Environment JSON, HTTP .har captures, or Bruno .bru text for live Bearer tokens, JWTs, Basic auth credentials, session Cookies, AWS/Stripe/OpenAI/GitHub keys, and x-api-key headers before git commit. Returns exact 1-based line numbers, redacted previews, and suggested vars:secret identifiers without exposing raw secrets.
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": {
"content": "<content>"
},
"name": "scan_api_collection_secrets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Raw Postman Collection/Environment JSON, HTTP .har JSON, or Bruno .bru text to scan for live credentials. | |
| fileName | No | Optional source filename (e.g. "checkout.postman_collection.json", "traffic.har", or "login.bru") for format detection and line annotations. |