list_directory 对齐 ls 语义:path 传空字符串或省略时等同于当前目录(任务目录),不再报「路径不能为空」;definitions.json 同步把 path 改为可选
This commit is contained in:
@@ -169,11 +169,10 @@
|
||||
"description": "Lists files and directories in a given path.\n\nUse this to see the contents of a directory. For searching by name or content, prefer `find_path` or `grep`.",
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"required": ["path"],
|
||||
"properties": {
|
||||
"path": {
|
||||
"type": "string",
|
||||
"description": "Path of the directory to list, relative to the session working directory. Absolute paths are also accepted."
|
||||
"description": "Path of the directory to list, relative to the session working directory. Absolute paths are also accepted. If empty or omitted, lists the current working directory (like `ls` with no argument)."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user