micropython_stat_path
Get file or directory details from a MicroPython board, including type, size, mode, and modification time. Use to verify path existence and metadata.
Instructions
MicroPython ボード上のパス情報を取得
Args: path: 対象パス
Returns:
ok: 取得に成功したら True
path: 対象パス
kind: file, dir, unknown のいずれか
size_bytes: ファイルサイズ
mode: os.stat() の mode 値
mtime: 更新時刻
error: エラー時のメッセージ
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_stat_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| kind | Yes | ||
| mode | Yes | ||
| path | Yes | ||
| error | Yes | ||
| mtime | Yes | ||
| size_bytes | Yes |