This skill allows users to search web content through the /web-search API. It is suitable for information lookup, recent content discovery, webpage search, image search, and video search.
Ensure you have installed the required dependency ( pip install requests). Use the bundled script to perform the search.
bash
python {baseDir}/scripts/perform_web_search.py \
--query "阿里巴巴2024年的ESG报告" \
--summary true \
--freshness noLimit \
--count 10 \
--api-key YOUR_API_KEY
--query - Search keywords or a natural language question.--summary - Whether to include summaries in the results. Accepts true or false. Default is true.--freshness - Time filter. Options: noLimit, oneDay, oneWeek, oneMonth, oneYear.--count - Number of results to return. Default is 10.--api-key - API key used in the Authorization: Bearer header. If omitted, read from GITEEAI_API_KEY.perform_web_search.py with the user parameters.SEARCH_RESULTS_JSON:.webPages.value.webPages.value unless the user explicitly asks for images or videos.--freshness accordingly.GITEEAI_API_KEY is missing, the user must provide --api-key.SEARCH_RESULTS_JSON: in the output. Always parse that line.