Skip to content

Commit 47ba795

Browse files
docs: clarify get_file_names_tool returns files only, not folders
Make the tool description explicit that the tool lists only regular files and never includes folders/subdirectories, so the agent does not try to use it to discover or navigate directories. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent f89313f commit 47ba795

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎src/askui/tools/store/computer/experimental/get_file_names.py‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ def __init__(self, agent_os: ComputerAgentOS | None = None) -> None:
2828
name="get_file_names_tool",
2929
description=(
3030
"Lists the names of regular files in an absolute directory on the "
31-
"computer under automation. Subdirectories are not included—only "
32-
"files are returned. Use absolute paths as on the target machine. "
33-
"Returns names only; use get_file_tool to read a file's contents."
31+
"computer under automation. IMPORTANT: only files are returned - "
32+
"folders and subdirectories are NOT included in the result and this "
33+
"tool cannot be used to discover or navigate them. Use absolute "
34+
"paths as on the target machine. Returns names only; use "
35+
"get_file_tool to read a file's contents."
3436
),
3537
input_schema={
3638
"type": "object",

0 commit comments

Comments
 (0)