deepseek_search_and_read
Search and read full page content in one request, including PDFs and forum threads, to gather research sources without separate fetch calls.
Instructions
Search and return full page content in one request — the recommended retrieval path.
This is search with need_content=True. Measured on 14 benchmark questions it returned content for PDFs and Reddit threads where deepseek_fetch returned HTTP 404, in about 0.7s per call.
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. count: Number of results to return, 1-50 (default 5). With dedupe on, extras are requested upstream so duplicates do not leave you short. ori_question: Original natural-language question, max 128 characters. 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. 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 | ||
| ori_question | No | ||
| max_total_chars | No | ||
| max_chars_per_result | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||