u
This commit is contained in:
@@ -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.'))
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user