scrapewise_update_scraper_schema
Binds this scraper to the given schema. For a CUSTOM schema, the supplied `schemaId`
is a "which group" hint — the server always re-resolves it to that group's live-current
latest version at write time, so the response's `schemaId` may differ from the request
body if another save had already published a newer version of the group. Non-CUSTOM
schemas resolve unchanged.
Args:
- id (string, path param, required): the scraper's MongoDB ObjectId.
- body (AttachSchemaDTO, required): schemaId — any schema id belonging to this
customer (or a global non-CUSTOM schema).
Returns:
The updated ScraperDTO (schemaId reflects the resolved binding).
Examples:
- Use when: "attach my Custom Schema {id} to scraper {id}"
- Use when: "switch scraper {id} to schema {id}"
Error Handling:
- 400 (CustomerError envelope) if no scraper with the given id exists for this
customer, or the schemaId does not resolve to any schema.
- 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": {
"id": "<id>",
"body": "<body>"
},
"name": "scrapewise_update_scraper_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | the scraper's MongoDB ObjectId. | |
| body | Yes | schemaId — any schema id belonging to this customer (or a global non-CUSTOM schema). |