file_tree
Search MinIO/S3 or local directory trees for files by code, name, or extension; returns a structured tree with matched branches and readable text output.
Instructions
Tìm trong cây thư mục MinIO/S3 hoặc local; trả tree JSON và tree_text dễ đọc.
root: tên vùng, URI s3://lsth-raw/thư-mục/ hoặc thư mục local. query: mã hàng, tên file/thư mục hoặc đuôi file; khớp mọi từ, không phân biệt dấu tiếng Việt và hoa thường. Ví dụ query='S2749189 BOM', root='s3://lsth-raw/'. Giữ nhánh cha của file khớp; bỏ query để hiện toàn cây. Không gồm thư mục rỗng. limit giới hạn số file; max_depth tính từ root, thư mục sâu hơn có collapsed=true. matched_count là số file khớp trong phần đã quét; scan_truncated=true nghĩa là chưa quét hết.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | ||
| limit | No | ||
| query | No | ||
| max_depth | No | ||
| scan_limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |