mrs__ShowHdfsFileList
Lists files in a specified directory within a Huawei Cloud MRS cluster, with pagination, sorting, and optional file-count controls for browsing HDFS data.
Instructions
[MRS] 在MRS集群中获取指定目录文件列表。
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": {
"cluster_id": "<cluster_id>",
"path": "<path>",
"project_id": "<project_id>"
},
"name": "mrs__ShowHdfsFileList"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | 文件目录。 | |
| limit | No | 分页参数,列表当前分页的数量限制,默认为100,最大1000。 | |
| order | No | 列表排序方式,desc为降序,asc为升序,默认值为desc。 | |
| offset | No | 分页参数,表示从该偏移量开始查询文件列表,默认值为0。 | |
| sort_key | No | 列表排序按该属性排序。缺省值:path_suffix | path_suffix |
| cluster_id | Yes | 集群ID。获取方法,请参见[获取集群ID](https://support.huaweicloud.com/api-mrs/mrs_02_9001.html)。 | |
| project_id | Yes | 项目编号。获取方法,请参见[获取项目ID](https://support.huaweicloud.com/api-mrs/mrs_02_0011.html)。 |