Contrie

v1.2.1
com.contrie/contrie Checked 16 hours ago Published 17 hours ago

Extract structured data from a web page, read it as markdown, verify values against the source.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

contrie_extract Extract structured data from a web page

Extract structured data from one public web page. Describe the fields in natural language and/or pass a JSON Schema for the exact shape. Returns JSON plus metadata to branch on: qualityScore (0-100; acceptance also requires valid output), grounding (text support, not semantic proof), high-level progress and credits charged. An accepted answer costs 1, 3, 8 or 15 credits; a refused one costs 0. Each plan caps one request's credits, rendering included; an answer above the cap is refused and costs 0. Successful rendered answers add 2 credits. Requires CONTRIE_API_KEY for live extraction; without…

ParameterTypeDescription
url *stringThe public web page to extract from
extractstringWhat to extract, in natural language (e.g. "product name, price, and stock status")
idempotencyKeystringStable request ID, 8–200 visible ASCII characters. Reuse the same ID and inputs to recover a completed response for 24 hours without another extraction or charge. Use a new ID for deliberately new w…
maxAgeintegerAccept page bytes from your account fetched up to this many seconds ago; origin expiry may be shorter. Default 0 bypasses cache reads/writes. Query/fragment/user-info URLs and restricted origin respon…
renderstringauto (default): render in a browser only if the page is a JavaScript shell; always: render first; never: plain fetch only. Only a successful rendered result adds 2 credits.
schemaobjectJSON Schema subset for the exact output shape (object/array/string/number/integer/boolean, properties, required, items, enum)

contrie_read Read a web page as markdown

Read one public web page as clean, structure-preserving markdown (headings, lists, tables, links) with common page boilerplate removed where recognized. Returns the full hosted JSON response, including markdown, source/evidence metadata and credits. A successful read costs 1 credit; a failed one costs 0. Successful rendered reads add 2 credits. For a long page, send maxChars to get verbatim passages inside that size (whole blocks where they fit; a passage larger than the size is cut and metadata.focus.cutInsideBlock is true), and objective to get the passages that share the most words with wha…

ParameterTypeDescription
url *stringThe public web page to read
idempotencyKeystringStable request ID, 8–200 visible ASCII characters. Reuse the same ID and inputs to recover a completed response for 24 hours without another extraction or charge. Use a new ID for deliberately new w…
maxAgeintegerAccept page bytes from your account fetched up to this many seconds ago; origin expiry may be shorter. Default 0 bypasses cache reads/writes. Query/fragment/user-info URLs and restricted origin respon…
maxCharsintegerReturn at most this many characters (500 to 100000) of the page, verbatim: whole blocks where they fit, a larger passage cut and flagged. Omit for the full page. metadata.focus says what was left out…
objectivestringWith maxChars: what you are looking for, in plain words. The passages that share the most words with it are returned in page order; gaps are marked. No model is involved, and if no word matches the pa…
offsetintegerWith maxChars: start at this character of the full page. Use metadata.focus.nextOffset to continue, or an omitted section's offset to read that section.
renderstringauto (default): render in a browser only if the page is a JavaScript shell; always: render first; never: plain fetch only. Only a successful rendered result adds 2 credits.

contrie_account Check account credits and current restrictions

Read your own account’s used, reserved and unreserved included credits, next allowance reset and current restrictions. Zero extraction credits; no capacity reservation or price quote. Requires CONTRIE_API_KEY.