hash_sha256
Generate SHA-256 cryptographic hash values from input strings for data verification and security applications.
Instructions
Generate a SHA-256 hash of the given input string.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | The string to hash |
Implementation Reference
- src/tools/hash.ts:38-50 (handler)The tool 'hash_sha256' is registered and implemented directly within the registerHashTools function using the node:crypto library.
server.tool( "hash_sha256", "Generate a SHA-256 hash of the given input string.", { input: z.string().describe("The string to hash") }, async ({ input }) => ({ content: [ { type: "text" as const, text: createHash("sha256").update(input).digest("hex"), }, ], }) );