Websearch

Search Google via the Serper API. Takes a single query. Returns titles, URLs, snippets, and knowledge-graph data.

CaseMark 5d3cae0 4 files · 7.5 KB Updated 34 repo stars

File contents

Web Search

Search the web via the Serper Google Search API.

Setup

Get a free API key at https://serper.dev, then run /login in prime-linc and choose "Serper (web search)" to paste it. The key is stored in prime-linc and made available to this skill automatically.

If web search reports a missing key, walk the user through those two steps; don't ask them to set environment variables.

Optional overrides (environment variables):

  • PRIME_AGENT_WEBSEARCH_TIMEOUT - HTTP timeout in seconds (default 45).
  • PRIME_AGENT_WEBSEARCH_NUM_RESULTS - number of organic results to return (default 5).

Usage

Call the prepared websearch import directly in the IPython kernel:

print(await websearch("latest prime-linc release"))

casemark/prime-linc/tree/main/packages/coding-agent/skills/websearch commit 5d3cae0aa5

Frequently asked questions

npx skillmds@latest add casemark/websearch