author_adapter
Create a verified sitewise browser adapter by supplying CSS selectors; it navigates the URL, checks extraction, and saves the adapter for reuse.
Instructions
Create a new sitewise browser adapter for a site you have inspected. Provide the CSS selectors you found (use browser_goto + browser_text/browser_eval to inspect first). sitewise navigates the URL, VERIFIES your selectors extract data, and saves the adapter — so it appears in list_commands and works for everyone. Returns the extracted sample rows, or an error if the selectors matched nothing.
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": {
"site": "<site>",
"command": "<command>",
"url": "<url>",
"itemSelector": "<itemSelector>",
"fields": "<fields>"
},
"name": "author_adapter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | page to scrape (may contain {query}/{0} placeholders) | |
| site | Yes | new adapter name, e.g. mysite | |
| fields | Yes | output field name -> how to read it: selector relative to the item (omit to use the item itself), attr for an attribute like href, absolute for absolute URLs | |
| command | Yes | command name, e.g. list | |
| description | No | ||
| itemSelector | Yes | CSS selector matching each repeated item/row |