scrapewise_get_scraper_site_links
Returns the URLs registered against the Site, paginated. Each Link carries
url + title + per-link state (visited / errored / pending). Supports MongoDB-
style filter expressions for narrowing (e.g., only errored links). Sort and
page-size are normalised (out-of-range values → safe defaults; not 500).
Args:
- siteId (string, path param, required): the Site's MongoDB ObjectId. Get
from scrapewise_get_scraper_site.
- page (int, query param, optional, default 0): zero-indexed page number.
- size (int, query param, optional, default 100): page size, capped at
MAX_PAGE_SIZE (auto-clamped if larger).
- sortField (string, query param, optional, default "url"): one of the
whitelisted Link fields (url, title, state, lastSeen). Unknown values are
silently fallback'd to "url" with a warn log.
- sortDirection (string, query param, optional, default "asc"): "asc" or
"desc"; case-insensitive.
- filters (string, query param, optional): URL-encoded JSON Mongo-style
filter expression (e.g., `{"state":"ERRORED"}`).
Returns:
Spring `Page<LinkDTO>` — `{content, totalElements, totalPages, ...}`.
Examples:
- Use when: "show me the URLs in site {siteId}" → siteId only
- Use when: "which URLs failed in site {siteId}?" → filters={"state":"ERRORED"}
- Don't use when: you want all sites for a customer → no such endpoint;
iterate scrapers via scrapewise_get_scraper_list, then call
scrapewise_get_scraper_site per scraper
Error Handling:
- 400 if siteId is not a valid ObjectId, or filters JSON is malformed.
- 400 (CustomerError envelope) if no site with the given id exists for this customer.
- 401 Unauthorized.
- 500 INTERNAL.[runtime hint] This tool returns JSON-as-text — its response shape is dynamic (per-scraper itemsConfig, file binary, etc.) so the MCP outputSchema is omitted. Do not rely on the presence of any specific field in the response; treat the result as a string-or-object blob and parse defensively.
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": {
"siteId": "<siteId>"
},
"name": "scrapewise_get_scraper_site_links"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| size | No | ||
| siteId | Yes | ||
| filters | No | ||
| sortField | No | url | |
| sortDirection | No | asc |