deepseek_web_search
Search the web for discovery and ranking, returning titles, URLs, dates, authority scores, and optional full page content in a single call.
Instructions
Search the web with DeepSeek's index. Returns titles, URLs, dates, authority and rerank scores.
Use this for discovery and ranking. Set need_content=True to get full page text inline in the same call (billed as one request, no per-page charge) — this is usually cheaper and more reliable than calling deepseek_fetch afterwards.
For non-English queries set lang to the appropriate code (e.g. 'es', 'de', 'ja'). Without it results may be mixed-language; for named entities test with and without the operator. Each result carries date (RFC 3339) and authority (0-4, -1 unknown).
Responses are cached in memory for a few minutes and identical concurrent calls share one upstream request; the envelope's cached flag tells which happened. Calls are rate-limited locally per endpoint: if no slot frees up within a short wait the error code is rate_limited_local. A response larger than 8 MiB fails with response_too_large.
Args: query: Search query, max 128 characters. Supports site:, -site:, "phrase", lang:, after:, before:. count: Number of results to return, 1-50 (default 10). With dedupe on, extras are requested upstream so duplicates do not leave you short. ori_question: Original natural-language question, max 128 characters; improves ranking. need_content: Return full page text per result (recommended for reading). lang: Language operator, e.g. 'es', 'de' or 'ja'. For non-English queries set it to the appropriate code; without it results may be mixed-language. For named entities test with and without the operator. max_chars_per_result: Content cap per result when need_content is set. max_total_chars: Total content budget across all results. dedupe: Collapse near-duplicate results (same canonical URL or same title+site), default on. rewrite: Rewrite the query via deepseek-flash before searching, default off. Skipped when lang is set; falls back silently to the original query on failure. refresh: Bypass the response cache and query upstream again (the envelope's cached flag says whether the results came from the cache).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | ||
| count | No | ||
| query | Yes | ||
| dedupe | No | ||
| refresh | No | ||
| rewrite | No | ||
| need_content | No | ||
| ori_question | No | ||
| max_total_chars | No | ||
| max_chars_per_result | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||