Web Extract
web_extractScrapes structured data from the current page. Pass selectors = an object mapping field names to CSS selectors (e.g. {"title":"h1","price":".price"}); returns each field's first match: its text, or for a link (an element with href) an object {text, href} with the absolute address; null when absent.
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": {
"selectors": "<selectors>"
},
"name": "web_extract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session | No | Session name (default 'default'). | |
| selectors | Yes | Field name → CSS selector map. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| data | No | One key per requested field: the first match's text, {text, href} for a link, null when absent. | |
| title | No |