web-search-and-fetch

web-search-and-fetch is a skill for Claude Code from latestaiagents/agent-skills. It costs 139 tokens per session (1,759 once invoked), scanned A, original, MIT.

Instructions for giving a Claude application live access to web search and to the full text of a page or PDF. Search finds relevant pages and provides citations, while fetching reads a specific source that is already available.

In plain words
What is it for?
Use it for current events, prices, recently changed facts, source-backed answers, and extracting or summarizing content from a URL or PDF.
Why use it?
Model knowledge may be out of date, and answers about changing facts need sources. This separates finding information from reading a known page and includes guidance for errors and unsafe data exposure.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the messages-api-features plugin — 7 skills shipped together , and of latestaiagents

Good fit Use it for current events, prices, recently changed facts, source-backed answers, and extracting or summarizing content from a URL or PDF.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/latestaiagents/agent-skills/web-search-and-fetch
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add latestaiagents/agent-skills --skill web-search-and-fetch
Clone the repo
git clone --depth 1 https://github.com/latestaiagents/agent-skills

Made for: Claude Code.

Or install messages-api-features, the plugin that ships this one along with the rest of its 7 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for web-search-and-fetch

README.md
[![agentmods](https://agentmods.dev/badge/skills/latestaiagents/agent-skills/web-search-and-fetch/github.svg)](https://agentmods.dev/skills/latestaiagents/agent-skills/web-search-and-fetch)
Your own site
<a href="https://agentmods.dev/skills/latestaiagents/agent-skills/web-search-and-fetch"><img src="https://agentmods.dev/badge/skills/latestaiagents/agent-skills/web-search-and-fetch/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for web-search-and-fetch

Your own site · 80×15
<a href="https://agentmods.dev/skills/latestaiagents/agent-skills/web-search-and-fetch"><img src="https://agentmods.dev/badge/skills/latestaiagents/agent-skills/web-search-and-fetch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 139 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,759 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00139 $0.01759
Opus 5.5 $0.00056 $0.00704
Sonnet 5.5 $0.00028 $0.00352
Haiku 4.5 $0.00014 $0.00176

Measured 26d ago against content hash 00a09cf8f526, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

web-search-and-fetch scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 26d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/messages-api-features/web-search-and-fetch/SKILL.md · 136 lines

How it starts

The opening of the file, as written. The whole thing — 136 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Web Search and Web Fetch

Web search finds pages and returns cited results; web fetch reads the full text of a URL or PDF that already appeared in the conversation. Both are server tools: Anthropic runs them during the request and you never return a tool result for them.

When to Use

Need Tool
Current events, prices, recently changed facts Web search
Answers that must cite sources Web search (citations always on) or web fetch with citations enabled
Summarize or extract from a specific URL or PDF Web fetch
"Read the README of project X" without a URL Both: search locates it, fetch reads it

When NOT to Use

  • Stable knowledge the model already has
  • Pages that require JavaScript rendering, login, or interaction: web fetch does not render JavaScript; use a browser-based tool
  • Environments mixing untrusted input with sensitive data, unless you restrict domains (see Step 5)

Workflow

Step 1: Choose versions

Both tools have dated versions. As documented at the time of writing:

Tool Versions Difference
Web search web_search_20250305, web_search_20260209, web_search_20260318 Basic; adds dynamic filtering; adds response_inclusion
Web fetch web_fetch_20250910, web_fetch_20260209, web_fetch_20260309, web_fetch_20260318 Basic; dynamic filtering; cache bypass (use_cache); response_inclusion

Dynamic filtering lets Claude write code that filters results before they enter context. It runs on code execution that the API provisions automatically, so do not add the code execution tool yourself. Not every model or cloud platform supports the newer versions (some platforms offer only the basic ones); check the tool pages, or read capabilities.server_tools.web_search.supported from the Models API.

An organization admin can disable either tool in the Claude Console; requests then fail with a 400.

Step 2: Declare the tools

import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic();
const MODEL = process.env.ANTHROPIC_MODEL!; // a current model ID

const response = await client.messages.create({
  model: MODEL,
  max_tokens: 16000,
  tools: [
    { type: "web_search_20250305", name: "web_search", max_uses: 3 },
    { type: "web_fetch_20250910", name: "web_fetch", max_uses: 5, citations: { enabled: true }, max_content_tokens: 50000 },
  ],
  messages: [{ role: "user", content: "Find the current release notes for project X and summarize breaking changes." }],
});

Read the full file on GitHub · 136 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 26d ago First seen · 136 lines · 139 tokens per session scan A 00a09cf8f526

Subscribe to this mod's changes

web-search-and-fetch is a skill published in the GitHub repository latestaiagents/agent-skills (6 stars, last pushed 26d ago), licensed MIT. It adds 139 tokens to every session and 1,759 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-04.

Related

web-search-and-fetch compared with skills from other repositories

web-search-and-fetch next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
web-search-and-fetchlatestaiagents/agent-skillsSkill626d agoMITA139Claude Code
nexent-daily-testModelEngine-Group/nexentSkill6.3kyesterdayMITA78Claude Code, Codex
ai-humanizer-zhskillsaiagent/aiskillsSkill55mo agononeA81Codex
ai-account-research-sales-cardskillsaiagent/aiskillsSkill55mo agononeA71Codex
ai-account-researchskillsaiagent/aiskillsSkill55mo agononeA65Codex
ai-amazon-brand-analyticsskillsaiagent/aiskillsSkill55mo agononeA72Codex
ai-amazon-international-listingsskillsaiagent/aiskillsSkill55mo agononeA75Codex