Hash a local video file
calculate_file_hashComputes a video file's OpenSubtitles hash and byte size for exact-file subtitle matching, reading only the first and last 64 KiB.
Instructions
Compute the OpenSubtitles hash (moviehash) and byte size of a video file on this computer, for exact-file matching in search_subtitles. Reads only the first and last 64 KiB. Local (stdio) mode only.
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": {
"file_path": "<file_path>"
},
"name": "calculate_file_hash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path, or relative to the server's working directory; ~ is expanded |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_name | Yes | ||
| moviehash | Yes | ||
| moviebytesize | Yes |