llm-watermark-detector
Detect LLM text watermark evidence: green-list z-test for a key you hold, plus invisible-character markers — Tests whether text carries watermark evidence, for a pipeline that must decide whether to trust or label content. Two independent checks: (1) a green-list z-test (Kirchenbauer et al. 2023) over green flags you supply, or over token ids and a key using this endpoint's own HMAC-SHA256 scheme, returning the z-score and exact binomial p-value; (2) an invisible-character scan of the text for zero-width
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "llm-watermark-detector"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Secret key for tokenIds. Used for this call only and never stored or echoed. | |
| text | No | Text to scan for invisible markers. | |
| gamma | No | Expected green fraction under no watermark. Default 0.25. | |
| scheme | No | Scheme for tokenIds; default and only value. | |
| tokenIds | No | Token ids in order (at most 5000). Green membership is computed from the key with the hmac-sha256-green-1 scheme; each distinct consecutive pair is scored once. | |
| minTokens | No | Fewer scored tokens than this is unknown. Default 25. | |
| greenFlags | No | One 0/1 per scored token: 1 when your own detector's green list contains the token. Deduplicate repeated n-grams yourself if your scheme requires it. | |
| zThreshold | No | z at or above which the result is fail. Default 4 (Kirchenbauer et al.). |