secret_masker
Masks common credentials in output chunks using stable placeholders; setting final=true flushes buffered text to prevent secret exposure in agent streams.
Instructions
Mask common credentials in output chunks using stable placeholders within a caller; final=true flushes buffered text.
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": {
"session_id": "<session_id>",
"stream_id": "<stream_id>",
"chunk": "<chunk>",
"final": "<final>"
},
"name": "secret_masker"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chunk | Yes | ||
| final | Yes | ||
| stream_id | Yes | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | Yes | ||
| text | No | ||
| status | Yes | ||
| remediation | Yes | ||
| secret_types | No |