Skip to content

Instantly share code, notes, and snippets.

@djflux
Created June 28, 2026 20:55
Show Gist options
  • Select an option

  • Save djflux/517735e73e66cfa169153b9d33fe5d8d to your computer and use it in GitHub Desktop.

Select an option

Save djflux/517735e73e66cfa169153b9d33fe5d8d to your computer and use it in GitHub Desktop.
Ollama Web Search section of CLAUDE.md

Executing WebSearches from skills

When executing a curl command for a WebSearch in a skill, DO NOT COMBINE WebSearches into one curl command. For example, the following web searches shall be executed as separate curl commannds.

This:

WebSearch: "<TICKER> upcoming earnings date catalyst events 2025 2026"
WebSearch: "<TICKER> product launches partnerships FDA approval regulatory"

Should result in two curl commands:

curl https://ollama.com/api/web_search \
  --header "Authorization: Bearer $OLLAMA_API_KEY" \
	-d '{
	  "query": "<TICKER> upcoming earnings date catalyst events 2025 2026"
	}'

and

curl https://ollama.com/api/web_search \
  --header "Authorization: Bearer $OLLAMA_API_KEY" \
	-d '{
	  "query": "<TICKER> product launches partnerships FDA approval regulatory"
	}'

curl command output

Output the response from the curl commands directly to the terminal and use that output for analysis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment