verify_signer_offline
Verify a JavaScript signing function offline by testing it against known input-response samples to detect mismatches.
Instructions
Verify a signing function against known samples (offline, no browser needed).
Args: signer_code: JavaScript code that exports a signing function. Must be a function expression or arrow function: e.g. "(s) => mySign(s)" samples: List of samples, each with expected request/response pairs: [{"id": "r1", "input": {...}, "expected": {"X-Bogus": "..."}}]
Returns: dict with overall passed/failed, per-sample results, and first mismatch.
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": {
"signer_code": "<signer_code>",
"samples": "<samples>"
},
"name": "verify_signer_offline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| samples | Yes | ||
| signer_code | Yes |