This commit is contained in:
seb
2026-10-06 03:30:31 +02:00
parent 0369b4e819
commit d5e58e76e1
15 changed files with 103 additions and 196 deletions

View File

@@ -137,10 +137,7 @@ export function createSearchImagesTool({ googleAuthId }) {
return defineTool({
name: 'search_images',
description:
'Search Google Images and store the results in the virtual filesystem as AVIF candidates. ' +
'Returns VFS paths, not inline images — then pass those paths to analyze_image to actually look at them ' +
'(up to 9 at once, rendered as a labelled grid) and pick the best one before uploading it to an article ' +
'or category. Candidates are cached, so a second search of the same term is cheap.',
'Search Google Images and download candidates to VFS as AVIF. Returns VFS paths for inspection via analyze_image.',
strict: false,
parameters: {
type: 'object',
@@ -149,19 +146,19 @@ export function createSearchImagesTool({ googleAuthId }) {
properties: {
query: {
type: 'string',
description: 'Search term, e.g. " Mineralwasser Flasche Glas ".',
description: 'Search query.',
},
count: {
type: 'number',
description: `How many candidate images to return. Default ${DEFAULT_COUNT}, max ${MAX_COUNT}.`,
description: `Candidate count. Default ${DEFAULT_COUNT}, max ${MAX_COUNT}.`,
},
gl: {
type: 'string',
description: 'Geolocation country code. Default "de".',
description: 'Country code. Default "de".',
},
hl: {
type: 'string',
description: 'Result language code. Default "de".',
description: 'Language code. Default "de".',
},
},
},