Skip to content

docs: clarify get_file_names_tool returns files only, not folders - #309

Merged
philipph-askui merged 1 commit into
mainfrom
fix/get-file-names-tool-description
Aug 12, 2026
Merged

docs: clarify get_file_names_tool returns files only, not folders#309
philipph-askui merged 1 commit into
mainfrom
fix/get-file-names-tool-description

Conversation

@philipph-askui

Copy link
Copy Markdown
Contributor

What

Adjusts the tool description of ComputerGetFileNamesTool (get_file_names_tool) to make it explicit that the tool returns only files and does not include folders/subdirectories in its result.

Why

The previous wording mentioned subdirectories were not included, but it was easy for the agent to overlook. This makes it unambiguous that the tool cannot be used to discover or navigate directories, so the agent doesn't attempt to list folders with it.

Before

Lists the names of regular files in an absolute directory on the computer under automation. Subdirectories are not included—only files are returned. Use absolute paths as on the target machine. Returns names only; use get_file_tool to read a file's contents.

After

Lists the names of regular files in an absolute directory on the computer under automation. IMPORTANT: only files are returned - folders and subdirectories are NOT included in the result and this tool cannot be used to discover or navigate them. Use absolute paths as on the target machine. Returns names only; use get_file_tool to read a file's contents.

Description-only change; no behavior change.

🤖 Generated with Claude Code

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>
@philipph-askui
philipph-askui merged commit a746c16 into main Aug 12, 2026
1 check passed
@philipph-askui
philipph-askui deleted the fix/get-file-names-tool-description branch August 12, 2026 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant