Bintu Ingest
ingestFetch one public HTTP or HTTPS URL and return readable text sized for an LLM context window. Supports scrape, chunk, and summarize modes; scrape returns text trimmed to max_tokens, chunk splits the page into chunks that each fit max_tokens, and summarize returns leading lines and whole sentences within max_tokens (not an AI-written summary). Pages are read up to 200,000 characters; truncated=true with limiting_factor=char_cap means that ceiling was hit, while token_budget means max_tokens was. Token counts are approximate estimates, not tokenizer counts; tokens_saved_estimate reports estimated savings. low_yield=true includes yield_hint. Results may come from cache (cache_hit, cache_layer); revalidated=true means a stale memory entry was refreshed by a fresh fetch; set cache=false to bypass cache reads and persist=false to skip the persistent write. URLs with credential-like query parameters are never stored, and robots.txt is honored. render_js requires operator enablement. Failures return isError=true with stable codes such as invalid_or_unsafe_url, upstream_access_denied, blocked_by_robots, payload_too_large, unsupported_media_type, upstream_rate_limited, and upstream_http_error. Repeated story blocks are excluded (deduplicated_count); code is returned in fenced blocks; tables are pipe-delimited. For RAG ingestion and grounded citations, prefer mode="chunk" with chunk_strategy="semantic" and use each chunk's chunk_id, heading_path, char_start/char_end, and source_url/final_url as citation anchors; usage.estimated_cost_usd reports estimated per-request token cost.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "ingest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Absolute public HTTP or HTTPS URL to read. Private, loopback, link-local and metadata addresses, non-standard ports and URLs containing credentials are rejected with invalid_or_unsafe_url. | |
| mode | No | scrape: selected page text trimmed to max_tokens. chunk: selected page text split into chunks that each fit max_tokens. summarize: leading lines and whole sentences from selected page text within max_tokens. When sections is provided, it filters the page before mode processing; if no section matches, no page content is returned. 'chunked' is accepted as an alias for chunk. | scrape |
| cache | No | Read from the memory and persistent caches (default true). false bypasses cache reads; a fresh result may still be written to the cache. | |
| links | No | How to represent hyperlinks in extracted text. inline preserves readable link URLs; footnotes uses numbered references and a link list; false omits URLs for the lowest-token output. | inline |
| persist | No | Allow a fresh result to be written to the persistent cache (default true). false skips that write; extraction and the short-lived memory cache are unchanged. | |
| sections | No | Optional heading selectors that filter the page before mode processing. Accepts either a newline-separated string (for example "Alpha\nBeta") or an array of strings (for example ["Alpha", "Beta"]). Whitespace and case are normalized for heading matching. When provided, scrape returns only matching sections, chunk/chunked splits only matching sections, and summarize summarizes only matching sections. If no requested section matches, the response contains no page content and reports no_match. Empty or whitespace-only selectors return invalid_arguments. Each selector must be 200 characters or fewer. When provided, persistent and memory caches are bypassed for reads; a fresh extraction may still be written when persist is true. | |
| render_js | No | Render the page in a browser before extraction. Available only if the operator enables it; otherwise render_js_disabled is returned and you should retry with false. | |
| max_tokens | No | Estimated-token budget, enforced in every mode: scrape trims to it, chunk makes each chunk fit it, summarize returns the leading text within it. Range 100 to 50000, default 6000. A single indivisible unit in chunk mode (for example one very long table row) can exceed it. Accepted alias: chunk_token_budget. | |
| summary_mode | No | Opt-in deterministic extractive summary. none preserves the existing response; leading selects the first eligible source sentences; key_sentences selects longer eligible sentences and restores source order. | none |
| chunk_strategy | No | Chunking strategy. sequential preserves the legacy token-budget behaviour. semantic uses heading-aware sections and returns retrieval metadata. | sequential |
| compact_chunks | No | Omit repeated per-chunk provenance and page-context fields to reduce chunk payload size. | |
| overlap_tokens | No | Approximate token overlap between chunks. Must be non-negative and less than max_tokens. | |
| return_metadata | No | Include optional retrieval enrichment metadata. Core provenance and identifiers remain available. | |
| main_content_only | No | Apply stronger main-content extraction before sections filtering and mode processing. When true, Bintu prefers the primary article or documentation container and reduces navigation, sidebars, footers, and non-article boilerplate before scrape, chunk, summarize, and sections processing. Default false preserves current extraction behavior. Cleaned requests use memory caching only. | |
| chunk_token_budget | No | Accepted alias for max_tokens; max_tokens wins on conflict. Range 100 to 50000. | |
| footnote_url_policy | No | For links=footnotes only: full preserves complete URL destinations; truncated replaces over-limit destinations with non-clickable abbreviated text. Default: truncated. | truncated |
| include_heading_path | No | Include the hierarchical heading path for each chunk. | |
| include_page_context | No | Include deterministic page-level context derived from the page title and heading path. | |
| summary_sentence_count | No | Maximum number of verbatim source sentences included in the opt-in extractive summary. | |
| max_footnote_url_length | No | For links=footnotes only: maximum URL length for the visible label and, with the truncated policy, the destination. Positive integer. Default: 100. | |
| exclude_terminal_sections | No | Remove recognized terminal non-body sections, such as References, See also, External links, and Further reading, after main-content extraction. Requires main_content_only and does not apply when explicit sections are requested. Default false preserves references and other terminal sections. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Extraction mode: scrape returns readable text; chunk splits it into budgeted chunks; summarize selects leading text within a budget. The accepted chunked alias normalizes to chunk. | |
| cache | No | Canonical cache-freshness metadata. fresh means the result is within Bintu's declared cache policy; it does not prove that upstream content is unchanged. | |
| split | Yes | True when content spans multiple chunks (chunk mode only; not truncation). | |
| usage | No | Metered usage and estimated cost in USD for the request. | |
| chunks | Yes | ||
| tokens | Yes | Compatibility alias of approx_tokens. | |
| filtered | No | True when a sections filter was applied before mode processing. | |
| warnings | No | Non-fatal section-selection warnings. | |
| cache_hit | Yes | True when the response was served from memory or persistent cache. | |
| low_yield | No | True when a large page produced very little text (often JavaScript-rendered or login-gated). | |
| truncated | Yes | True when extracted content exceeded a limit and the returned text was shortened. | |
| page_title | No | Human-readable title of the source document, when available. | |
| provenance | No | Request and extraction provenance metadata when enabled. | |
| source_url | Yes | The requested URL with sensitive-looking query parameters removed, safe for logs and display. | |
| yield_hint | No | Present only when low_yield is true: a short suggestion for what to try next. | |
| cache_layer | Yes | Which cache served the response: none, memory, or persistent. | |
| chunk_count | Yes | Number of chunks in the chunks array (1 for scrape and summarize modes when not split). | |
| html_tokens | Yes | Approximate token count of the fetched source HTML, computed the same way as approx_tokens. | |
| revalidated | No | True when a stale memory-cache entry was refreshed by a fresh fetch after the cached fetch failed. False for fresh hits, persistent hits, and cache bypass. | |
| extracted_at | Yes | UTC ISO 8601 timestamp of the extraction. | |
| token_method | Yes | Method used to compute approx_tokens: ceil(characters / 4). | |
| approx_tokens | Yes | Approximate token count of the returned text: ceil(characters / 4). An estimate, not a tokenizer count. | |
| content_quality | No | Quality assessment signals describing extraction usefulness and boilerplate contamination. | |
| limiting_factor | Yes | Which limit bound the returned text: char_cap (extracted-text character ceiling) or token_budget (max_tokens), or none when no limit shortened the response. | |
| content_cleaning | No | ||
| page_title_source | No | Origin of page_title: html_title, heading, url_fallback, or none. | |
| available_sections | No | Headings and labels available in the extracted document. | |
| deduplicated_count | No | Repeated story blocks excluded from the extracted text. | |
| requested_sections | No | Section selectors requested by the caller. | |
| unmatched_sections | No | Requested section selectors that did not match a heading or label. | |
| section_match_status | No | Outcome of section selection. | |
| tokens_saved_estimate | Yes | Estimated tokens saved by extraction: source-HTML approximate tokens minus returned-text approximate tokens, floored at 0. |