codearia-sieve

v0.2.2
io.github.AntonG87/codearia-sieve Checked 3 hours ago Published 2 months ago

Web pages into decision-ready state: dates, numbers with units, budgeted chunks.

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

sieve_page Prepare a page for decisions

Turns a web page into decision-ready state: dates as ISO fields, numbers with units as facts, text in token-budgeted chunks with anchors back to the page, and the token bill (raw vs state). Start with mode=summary; fetch chunk text with sieve_chunk or mode=full only when needed.

ParameterTypeDescription
htmlstringRaw HTML to process instead of fetching. Pair with url for anchors.
maxCharsintegerChunk budget in characters.
maxTokensintegerChunk budget in tokens.
modestringsummary: state without chunk text (cheap, default). full: with chunk text. markdown: readable text instead of state.
taskstringWhat you intend to decide; enables relevance selection when a selector is configured.
tracebooleanInclude what was discarded and where the date came from.
urlstringPage to fetch. Either url or html is required.

sieve_chunk Read one chunk

Returns the text of a chunk from a page prepared earlier with sieve_page (same url).

ParameterTypeDescription
id *stringChunk id such as c3.
url *string