Description
The read-many-files tool filters out non-text files (images, PDFs, etc.) unless they are explicitly requested, causing valid files to be ignored.
// packages/core/src/tools/read-many-files.ts
if (!requestedExplicitly) {
return { success: false, reason: 'asset file... not explicitly requested' };
}
Impact
- Agent assumes directories are empty when they contain assets
- Fails at image organization and frontend-related tasks
- “List all files” queries return misleading empty results
Potential Fix
Remove the requestedExplicitly check. If a glob pattern matches a file, include it (or at least return its metadata).
Description
The
read-many-filestool filters out non-text files (images, PDFs, etc.) unless they are explicitly requested, causing valid files to be ignored.Impact
Potential Fix
Remove the
requestedExplicitlycheck. If a glob pattern matches a file, include it (or at least return its metadata).