codearia-sieve
v0.2.2Web 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.
| Parameter | Type | Description |
|---|---|---|
html | string | Raw HTML to process instead of fetching. Pair with url for anchors. |
maxChars | integer | Chunk budget in characters. |
maxTokens | integer | Chunk budget in tokens. |
mode | string | summary: state without chunk text (cheap, default). full: with chunk text. markdown: readable text instead of state. |
task | string | What you intend to decide; enables relevance selection when a selector is configured. |
trace | boolean | Include what was discarded and where the date came from. |
url | string | Page 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).
| Parameter | Type | Description |
|---|---|---|
id * | string | Chunk id such as c3. |
url * | string |