list_directory
List directory contents with optional extension filter and recursion to batch process textures or proxy files.
Instructions
列出目录内容,可按扩展名过滤,支持递归。用于批量处理贴图或代理文件。 [English] List a directory, optionally filtered by extension and recursive. Use it to batch process textures or proxy files.
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": "list_directory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | 目录绝对路径。 | Absolute directory path. | |
| limit | No | 最多返回条数,默认 500。 | Maximum entries to return, default 500. | |
| pattern | No | 通配符,例如 *.jpg 或 *.max。 | Wildcard such as *.jpg or *.max. | |
| recursive | No | 是否递归子目录,默认否。 | Recurse into subfolders, default false. |