How to fetch
- If a HasData tool is connected whose name contains
google_serp_news, call it. Read its schema. Pass the topic 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-news --q "TOPIC" --pretty -o .hasdata/news.json
gl and hl set country and language. topicToken, sectionToken, publicationToken, and storyToken come from an earlier news response; do not invent them.
Return headline, source, date, and link from the tool output. Do not fill gaps with a web search.