所有伺服器工具
讓任何模型都能讀取網頁。當模型需要某個 URL 的內容時,OpenRouter 會使用已設定的引擎擷取網頁、擷取可讀內容,再將內容回傳給模型。
運作方式
用於讀取特定網頁或 PDF,例如提示中的連結或待摘要的文件。
- 1
您的模型 請求取得需要讀取的網頁或 PDF 網址。
- 2
OpenRouter 使用已設定的引擎擷取內容,並萃取可讀文字。
- 3
您的模型 在回答中使用該內容,並可擷取更多網址。
供應商與定價
預設引擎 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://openrouter.ai/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://openrouter.ai/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.
相關工具
搜尋與網路