scrapewise_delete_scraper_data_preview
First half of the destructive-op two-call protocol per ADR-012. Mints a 5-min
`DestructiveOpToken` for the run-data-delete operation. The agent surfaces the
preview before committing.
Changes none of your data; each call issues a new one-time confirm token.
Args:
- scraperJobStatusId (string, query param, required): the run's MongoDB ObjectId.
Returns:
`DestructivePreviewResponseDTO` with `token` (opaque UUID; supply to commit
within 5 min), `opName`, `targetEntityId`, and `previewSummary`.
Examples:
- Use when: agent intends to delete a bad run's data and wants the user to
confirm — preview, render the summary, then commit on approval.
- Don't use when: you want to delete the scraper config too → use
`scrapewise_delete_scraper_preview` with `withData=true`.
- Don't use when: read-only inspection → use `scrapewise_get_scraper_load_history`.
Error Handling:
- 400 if scraperJobStatusId is not a valid ObjectId.
- 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": {
"scraperJobStatusId": "<scraperJobStatusId>"
},
"name": "scrapewise_delete_scraper_data_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scraperJobStatusId | Yes | the run's MongoDB ObjectId. |