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.
npx skills add latestaiagents/agent-skills --skill web-search-and-fetchgit clone --depth 1 https://github.com/latestaiagents/agent-skillsWrote 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.
[](https://agentmods.dev/skills/latestaiagents/agent-skills/web-search-and-fetch)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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." }],
});
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.
- 26d ago First seen · 136 lines · 139 tokens per session scan A 00a09cf8f526
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.
web-search-and-fetch compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| web-search-and-fetchlatestaiagents/agent-skills | Skill | 6 | 26d ago | MIT | A | 139 | Claude Code |
| nexent-daily-testModelEngine-Group/nexent | Skill | 6.3k | yesterday | MIT | A | 78 | Claude Code, Codex |
| ai-humanizer-zhskillsaiagent/aiskills | Skill | 5 | 5mo ago | none | A | 81 | Codex |
| ai-account-research-sales-cardskillsaiagent/aiskills | Skill | 5 | 5mo ago | none | A | 71 | Codex |
| ai-account-researchskillsaiagent/aiskills | Skill | 5 | 5mo ago | none | A | 65 | Codex |
| ai-amazon-brand-analyticsskillsaiagent/aiskills | Skill | 5 | 5mo ago | none | A | 72 | Codex |
| ai-amazon-international-listingsskillsaiagent/aiskills | Skill | 5 | 5mo ago | none | A | 75 | Codex |