micropython_hash_file
Compute the hash of a file on a MicroPython device to verify integrity or detect changes; supports SHA-256.
Instructions
MicroPython ボード上のファイルのハッシュを返す。
Args: path: 対象ファイルパス algorithm: ハッシュアルゴリズム。現状は sha256 のみ timeout: コード送信から Raw REPL 復帰完了までの全体タイムアウト秒数
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": {
"path": "<path>"
},
"name": "micropython_hash_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| timeout | No | ||
| algorithm | No | sha256 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| path | Yes | ||
| error | Yes | ||
| digest | Yes | ||
| algorithm | Yes | ||
| size_bytes | Yes |