Fitter
v1.8.3Turn any website or API into structured JSON with LLM-authored declarative scraping configs.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
fitter_config_reference
Return a condensed reference of the Fitter config format (connectors, parsers, model/field schema, placeholders, notifiers, references, limits) with working examples. Use it before authoring a config for fitter_run.
fitter_inspect_url
Fetch a URL and return a compact structure outline plus candidate selectors/paths, so you can author a fitter config that matches on the first try instead of guessing selectors and getting nulls. For JSON it lists gjson paths with types and sample values; for HTML it lists repeated elements (candidate array_config root_path / list rows) and link/heading selectors. For client-rendered SPAs (content built by JavaScript), a plain fetch sees only an empty shell — the output warns when it detects one; pass render:true to render it in a headless browser first (mirrors what a browser_config scrape…
| Parameter | Type | Description |
|---|---|---|
url * | string | HTTP(S) URL to fetch and inspect for its structure and candidate selectors. |
render | boolean | Render the page in a headless browser (Playwright/Chromium) before inspecting — needed for client-rendered SPAs whose content is built by JavaScript and is absent from the raw HTML. Requires browser… |
response_type | string | Optional hint for how to read the response: json, HTML, xpath or XML. Empty auto-detects from the Content-Type/body. |
fitter_run
Run a Fitter scraping/parsing config passed inline (JSON or YAML) and return the extracted data as JSON. Fitter fetches data via a connector (HTTP request, headless browser, static value, file, ...) and extracts structured data using json/HTML/XML/xpath selectors described by a declarative model. Call fitter_config_reference first if you are unsure about the config format.
| Parameter | Type | Description |
|---|---|---|
config * | string | Fitter CliItem config as a JSON or YAML string. Top-level keys: item (required), limits, references. |
input | string | Optional input value (plain string or JSON), available in the config via {{{FromInput=.}}} or {{{FromInput=json.path}}} placeholders. |
fitter_run_file
Run a Fitter scraping/parsing config from a local JSON or YAML file and return the extracted data as JSON. Same as fitter_run but reads the config from disk.
| Parameter | Type | Description |
|---|---|---|
path * | string | Absolute path to a Fitter config file (.json, .yaml or .yml) with top-level keys: item (required), limits, references. |
input | string | Optional input value (plain string or JSON), available in the config via {{{FromInput=.}}} or {{{FromInput=json.path}}} placeholders. |
fitter_run_url
Run a Fitter scraping/parsing config downloaded from an HTTP(S) URL (JSON or YAML) and return the extracted data as JSON. Same as fitter_run but fetches the config from a remote location, e.g. a raw GitHub link.
| Parameter | Type | Description |
|---|---|---|
url * | string | HTTP(S) URL of a Fitter config (JSON or YAML) with top-level keys: item (required), limits, references. |
input | string | Optional input value (plain string or JSON), available in the config via {{{FromInput=.}}} or {{{FromInput=json.path}}} placeholders. |
fitter_validate_config
Validate a Fitter config (JSON or YAML) without executing it. Checks the structural rules: item/connector_config/model presence, valid response_type, that the connector has a data source, and compiles every condition/item_condition expression in the model. Returns "valid" or the validation error. Cheap and safe — use it while iterating on a config before calling fitter_run.
| Parameter | Type | Description |
|---|---|---|
config * | string | Fitter CliItem config as a JSON or YAML string to validate without executing it. |