How to fetch
- If a HasData tool is connected whose name contains
google_images, call it. Read its schema. Pass the query inq. Do not run a shell command when the tool exists. - If no HasData tool is connected, ask the user to press Connect on the HasData connector for this chat. Do not install software and do not ask them to paste an API key.
- Use the
hasdatacommand only when the connector cannot be connected and the binary is already on PATH:
hasdata google-images --q "QUERY" --pretty -o .hasdata/images.json
Show title, source page, and image URL from the results. gl and hl set country and language. ijn is the page index from a previous response.