AgentSkillsCN

list-directory

列出目录内容,包括文件与子目录。当你需要探索目录结构、查找特定文件,或确认某个文件夹中究竟有哪些内容时,此功能将助你一臂之力。

SKILL.md
--- frontmatter
name: list-directory
description: List directory contents including files and subdirectories. When you need to explore directory structure, find specific files, or check what exists in a folder.
system: true
handler: filesystem
tool-name: list_directory
category: File System

List Directory

列出目录内容。

Parameters

参数类型必填说明
pathstring目录路径

Returns

  • 文件名和类型
  • 文件大小
  • 修改时间

Examples

列出当前目录:

json
{"path": "."}

列出指定目录:

json
{"path": "/home/user/documents"}

Related Skills

  • read-file: 读取文件内容
  • write-file: 写入文件