Hash a Luau closure's bytecode
get-function-hashCompute a stable bytecode hash of a Luau function to compare closures and detect changes; C closures return a clear error.
Instructions
Resolve a function and return getfunctionhash(fn), useful for stable comparison and change detection. Volt only supports bytecode hashing for Luau closures; C closures return a clean executor error. Signature: { functionPath: string, threadContext: number? }. Phase: observe; cost=medium; idempotency=read-only. Requires: active-client, resolved-target. Capabilities: debug closure primitives. Produces: structured-observation. Safety: read-only. On failure: inspect tool-schema for exact fields, defaults, constraints, and an invocation example.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| functionPath | Yes | Luau expression resolving to the target function. | |
| threadContext | No | Optional Roblox thread identity for this call; omit it to use the server default. |