micropython_upload_file
Transfer a local file to a MicroPython board through an MCP bridge, optionally preventing overwrites, and return bytes written and SHA-256.
Instructions
ローカルファイルを MicroPython ボードへ転送
Args: local_path: ホスト側ファイルパス。ワークスペース内のみ指定可能 remote_path: デバイス側ファイルパス timeout: コード送信から Raw REPL 復帰完了までの全体タイムアウト秒数 overwrite: False のとき既存ファイルを上書きしない
Returns: ok: 転送に成功したら True local_path: 読み込んだローカルパス remote_path: 書き込んだデバイス側パス bytes_written: 書き込んだバイト数 sha256: 転送内容の sha256。失敗時は None error: エラー時のメッセージ
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | ||
| overwrite | No | ||
| local_path | Yes | ||
| remote_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | Yes | ||
| sha256 | Yes | ||
| local_path | Yes | ||
| remote_path | Yes | ||
| bytes_written | Yes |