Prepare a page for decisions
sieve_pageConvert web pages into decision-ready data: ISO dates, unit-tagged numbers, token-budgeted text chunks with anchors, and token costs. Start with summary mode for efficient analysis.
Instructions
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Page to fetch. Either url or html is required. | |
| html | No | Raw HTML to process instead of fetching. Pair with url for anchors. | |
| mode | No | summary: state without chunk text (cheap, default). full: with chunk text. markdown: readable text instead of state. | summary |
| task | No | What you intend to decide; enables relevance selection when a selector is configured. | |
| trace | No | Include what was discarded and where the date came from. | |
| maxChars | No | Chunk budget in characters. | |
| maxTokens | No | Chunk budget in tokens. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | ||
| trace | No | ||
| usage | Yes | ||
| source | Yes | ||
| markdown | No | ||
| warnings | Yes |