Extract structured data
extractPull links, tables, JSON-LD, meta, text, or CSS-mapped fields from the current page deterministically without an LLM; use snapshots to locate selectors first.
Instructions
Deterministic extraction from the current page. Modes: links, tables, jsonld, meta, selector (CSS map), text. No LLM involved; pair with snapshot/markdown when you need to locate a selector first.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mode": "<mode>"
},
"name": "extract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| limit | No | Max items (default 100). | |
| selector | No | For mode=selector: { field: "css" | { selector, attr?, all? } } | |
| max_chars | No | JSON output cap (default 16000). |