scrapewise_get_run_columns
Returns the full set of distinct top-level field names present in one scraper run's
scraped rows, for the Enrich column-mapping builder (where the user draws a line
between two runs' columns to define the join key). Unlike the matcher's field
detection, this includes `url` and numeric fields and unions keys across the run's
documents, so any column can be chosen as a join key. Requires DATA_ENRICHMENT.
Args:
- id (string, path param, required): the group's MongoDB ObjectId.
- jobId (string, path param, required): the run's scraperJobStatusId. The run must
belong to this group and to the calling customer.
Returns:
`Map<String, Any>` — `{"columns": ["ean", "name", "url", ...]}` (sorted).
Examples:
- Use when: "what columns does run {jobId} of group {id} have, so I can pick a join key"
- Use when: "list the fields available to enrich/merge on for this run" → same op
- Don't use when: you need the matcher's matchable fields (those exclude url/numerics) →
use the matcher field-detection endpoint instead
Error Handling:
- 402 if customer plan lacks DATA_ENRICHMENT feature.
- 400 (CustomerError envelope) if the group/job is missing, not owned, or the job
does not belong to the group.
- 401 Unauthorized.[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>",
"jobId": "<jobId>"
},
"name": "scrapewise_get_run_columns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| jobId | Yes |