browse_datastore
Recursively search a VMware datastore folder and its subfolders for files matching a glob pattern, returning each match plus total counts to locate arbitrary files.
Instructions
[READ] Search a datastore folder and all its subfolders for files.
Use this for arbitrary files or a glob; prefer scan_datastore_images for deployable images. datastore_name comes from list_all_datastores.
Returns the list envelope: 'items' holds one row per file, and 'returned'/'total'/'truncated' state whether the listing is complete. All matches are returned, so truncated is always false.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Datastore-relative folder to start from (empty for root); a leading '/' or '..' is refused. The search is recursive, so the root returns matches from every folder; each row's ds_path is "[ds] dir/file". | |
| target | No | Optional vCenter/ESXi target name from config. | |
| pattern | No | Glob pattern to filter files (e.g. "*.ova", "*.iso"). | * |
| datastore_name | Yes | Datastore name. |