Skip to content
Agentmart
Submit a tool

ollama-web

Use Ollama Cloud web APIs for single-query web search and single-page web fetch.

Skill by xream

IndexedGPL-3.0★ 255
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/xream-ollama-web

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use Ollama Cloud web APIs for single-query web search and single-page web fetch. Requires OLLAMA_API_KEY and uses shell HTTP requests, preferably curl.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/ollama-web

What's inside

Skill name
ollama-web
Description
Use Ollama Cloud web APIs for single-query web search and single-page web fetch. Requires OLLAMA_API_KEY and uses shell HTTP requests, preferably curl.
License
GPL-3.0
Instructions
142 lines in SKILL.md · view on GitHub

Before installing

  • Instructions call the network

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Ollama Web

Call Ollama Cloud's `web_search` and `web_fetch` APIs from the shell. This skill intentionally does not use a `scripts/` directory.

## When to use

- User asks for Ollama web search or web fetch
- User wants to search the web through Ollama Cloud
- User wants to fetch a single webpage through Ollama Cloud and extract structured content

## Required environment variable

`OLLAMA_API_KEY` must be set before sending requests.

```bash
export OLLAMA_API_KEY=your_api_key_here
test -n "$OLLAMA_API_KEY" || { echo "OLLAMA_API_KEY is required" >&2; exit 1; }
```

## HTTP client policy

- Prefer `curl`
- Do not create a dedicated script just for this skill
- Do not install new dependencies just to make the request
- If `curl` is unavailable, use any HTTP client already present in the environment and preserve the same method, URL, headers, and JSON body
- If no HTTP-capable tool is available, stop and report the exact request specification instead of fabricating results

Check for `curl` like this:

```bash
command -v curl >/dev/null 2>&1 || echo "curl not found"
```

## Web Search

Performs a web search for a single query and returns relevant results.

### Request

- Method: `POST`
- URL: `https://ollama.com/api/web_search`
- Headers:
  - `Authorization: Bearer $OLLAMA_API_KEY`
  - `Content-Type: application/json`
- JSON body:
  - `query` (string, required)
  - `max_results` (integer, optional, default `5`, max `10`)

### `curl` example

```bash
curl --request POST \
  --url https://ollama.com/api/web_search \
  --header "Authorization: Bearer $OLLAMA_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
    "query": "what is ollama?",
    "max_results": 5
  }'
```

### Response shape

```json
{
  "results": [
    {
      "title": "Ollama",
      "url": "https://ollama.com/",
      "content": "Cloud models are now available..."
    }
  ]
}
```

### Guidance

- `query` is a single search string, not a list
- Omit `max_results` unless a non-default value is needed
- Never send `max_results` greater than `10`
- Report only what the API returned; do not invent missing search results

## Web Fetch

Fetches a single web page by URL and returns its content.

### Request

- Method: `POST`
- URL: `https://ollama.com/api/web_fetch`
- Headers:
  - `Authorization: Bearer $OLLAMA_API_KEY`
  - `Content-Type: application/json`
- JSON body:
  - `url` (string, required)

### `curl` example

```bash
curl --request POST \
  --url https://ollama.com/api/web_fetch \
  --header "Authorization: Bearer $OLLAMA_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
    "url": "https://ollama.com"
  }'
```

### Response shape

```json
{
  "title": "Ollama",
  "content": "[Cloud models](https://ollama.com/blog/cloud-models) are now available in Ollama...",
  "links": [
    "http://ollama.com/",
    "http://ollama.com/models",
    "https://github.com/ollama/ollama"
  ]

From xream/scripts, GPL-3.0.

Signals

Stars
255
Forks
61
Open issues
0
Last commit (this folder)
Mar 26, 2026 (7 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
GPL-3.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from xream

Cite this page

ollama-web skill. Agent Mart. https://agentmart.dev/skills/xream-ollama-web (last updated 2026-10-24)