列项目文件
piweb_list_filesLists files in a project directory, preferring git ls-files and skipping .gitignore entries. Use the filter option to locate readable files by fuzzy name match.
Instructions
列出某个项目目录下的文件(优先 git ls-files,跳过 .gitignore)。可带 filter 做模糊匹配。用来定位某个项目里有哪些文件可读。
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": {
"cwd": "<cwd>"
},
"name": "piweb_list_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | 项目目录的绝对路径 | |
| limit | No | 最多列出多少,默认 100 | |
| filter | No | 文件名模糊匹配(如 mcp、route.ts) |