ai_evidence_verify_hash
Verify candidate text against evidence by computing SHA-256 and comparing to the content hash, returning ok on match or a mismatch error with expected and recomputed values.
Instructions
Compute SHA-256 over the canonical UTF-8 form of candidate_text (LF endings, no trailing newline) and compare against the evidence's verification.content_hash. Returns ok=true on match, or { error: hash_mismatch, expected, recomputed }.
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": {
"document_json": "<document_json>",
"candidate_text": "<candidate_text>"
},
"name": "ai_evidence_verify_hash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document_json | Yes | ||
| candidate_text | Yes | The text whose hash should match the evidence's content_hash. |