This commit is contained in:
seb
2026-10-06 13:36:03 +02:00
parent cab06d96e8
commit 07f0d5ba80
9 changed files with 1710 additions and 21 deletions

View File

@@ -124,7 +124,9 @@ export function createReadFileTool({ googleAuthId }) {
`"${clean}" is a binary file (${raw.length} bytes${ext ? `, ${ext}` : ''}) and cannot be read as text. ` +
(['.png', '.jpg', '.jpeg', '.avif', '.webp', '.gif', '.bmp'].includes(ext)
? 'Use analyze_image({ path: ' + JSON.stringify(clean) + ' }) to have a vision model inspect it.'
: 'Fetch it as bytes from javascript_execute with fs.readFileSync if you need its contents.')
: (['.xlsx', '.xls', '.xlsm'].includes(ext)
? 'Use javascript_execute with ExcelJS to inspect or modify spreadsheet files.'
: 'Fetch it as bytes from javascript_execute with fs.readFileSync if you need its contents.'))
);
}