skim402

v0.2.5
io.github.JessieJanie/skim402 Checked 1 day ago Published 3 months ago

Clean markdown and structured web data.

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

read_url

Fetch any URL and return clean, agent-ready Markdown via Skim (skim402.com). Output is ~4x smaller than raw HTML — fewer tokens, faster processing. Strips nav, ads, and boilerplate; preserves the article body plus structured metadata (title, byline, published date, language, excerpt). Use this whenever you need to read web content: articles, docs, blog posts, GitHub READMEs, research papers, etc.

ParameterTypeDescription
url *stringThe fully-qualified URL to fetch and clean (https://...).

read_urls

Read up to 10 URLs in one Skim call and return per-URL clean Markdown plus metadata. Use this instead of calling read_url in a loop. Card lane: POST /api/t/read/batch. Wallet lane: POST /api/v1/read/batch.

ParameterTypeDescription
urls *array1–10 fully-qualified http(s) URLs to read.
stripImagesbooleanIf true, drop image markup from the markdown.
stripLinksbooleanIf true, flatten markdown links to their anchor text.

extract_url

Extract structured JSON (or tables) from a URL via Skim. Pass a JSON Schema, or a preset (article, product, job, review, event, table). Values come only from the page — missing fields are omitted or null, never invented. Card lane: POST /api/t/extract. Wallet lane: POST /api/v1/extract.

ParameterTypeDescription
url *stringThe fully-qualified URL to fetch and extract from.
instructionsstringOptional natural-language hint (e.g. only quote prices from the article body).
presetstringBuilt-in extraction shape. Use table for data tables on the page. Ignored when schema is set.
schemaobjectJSON Schema (type: object) describing the output. Required unless preset is set. Wins if both are set.

crawl_url

Crawl a site (origin or start URL) and return clean Markdown for the important pages. Discovers sitemap.xml / robots.txt sitemaps plus same-origin links. Cap 25 pages. 1 credit per successful page; failed pages are not charged. Card lane only: POST /api/t/crawl. No x402 /v1 twin.

ParameterTypeDescription
url *stringSite origin or start URL. Bare hosts like example.com are treated as https://example.com.
maxPagesintegerOptional page cap, 1–25. Default 25.
stripImagesbooleanIf true, drop image markup from every page.
stripLinksbooleanIf true, flatten markdown links to their anchor text on every page.

read_pdf

Fetch a public PDF URL and return clean Markdown plus an optional bookmark outline. Text comes only from the file — nothing is invented. Image-only scans return 422 (no OCR). Files larger than 8 MB return 413. 3 credits; failed conversions are not charged. Card lane only: POST /api/t/read-pdf. No x402 /v1 twin.

ParameterTypeDescription
url *stringAbsolute http(s) PDF URL to fetch and convert.
outlinebooleanIf true (default), include the PDF bookmark outline when present. Set false to omit it.

watch_urls

Register a private Skim Watch on 1–20 URLs. Returns a watch_id (treat it as a secret) used with check_watch. First check baselines each page; later checks report content diffs. Card lane: POST /api/t/watch. Wallet lane: POST /api/v2/watch.

ParameterTypeDescription
urls *array1–20 fully-qualified http(s) URLs to watch.
notestringOptional label for this watch (e.g. competitor pricing).

check_watch

Poll a Skim Watch for content changes (or fetch registration status). Pass the watch_id from watch_urls. Card lane: GET /api/t/watch/diff?id= (or /status). Wallet lane: GET /api/v2/watch/diff?id= (or /status, which is free).

ParameterTypeDescription
watch_id *stringWatch id returned by watch_urls (treat as a secret).
status_onlybooleanIf true, return registration status only (no diff). Wallet-lane status is free.

poll_signal

Poll a Skim Signal feed and return the latest structured items (title, summary, source, timestamp, link, entities). 2 credits per successful poll; failed polls are refunded. Card lane: GET /api/t/signal/{slug}/latest?limit= (filters: forms, categories, fields, states, committees). The x402 ecosystem feed is GET /api/t/feeds/x402/latest — never /signal/x402. Requires SKIM_API_KEY. No x402-fetch-compatible wallet twin (GET /api/v2/... returns a v2 402 with an empty body).

ParameterTypeDescription
slug *stringSignal slug from skim402.com/signals. Use x402 for the ecosystem feed, not /signal/x402.
categoriesstringdeals only. Comma-separated category terms (1–8, each 2–40 chars), e.g. laptop,gpu.
committeesstringcampaign-finance only. Comma-separated committee-name substrings (1–8, each 2–60 chars), e.g. turning point,dnc.
fieldsstringresearch only. Comma-separated arXiv fields: ai, ml, nlp, vision, robotics, agents, security, quantum.
formsstringComma-separated form filter. sec-filings: 8-K, S-1, 10-K, 10-Q, SC 13D, SC 13G, 4. campaign-finance: F1, F2, F3, F3P, F3X, F3L, F24, F5, F6, F9, F13, F99.
limitintegerMax items, newest-first. Default 50, capped at 100.
statesstringfilm-incentives only. Comma-separated two-letter states: CA, NY, GA, NM, TX.