Export records to R2 staging (paid)
nc_exportPages through the source app's records (read only) into NDJSON objects in the customer's R2 bucket. Resumable: progress is saved after every page, so a stopped run continues where it stopped. Each call does a bounded slice and returns status partial until every type is done; call it again. Pass since for a delta run that exports only records modified after that time. Paid: needs a pass for the app, or the free trial for plans up to 1,000 records.
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": {
"job_id": "<job_id>"
},
"name": "nc_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | ISO date. Only records modified after it (a delta run). Starts a new run once the previous one is done. | |
| types | No | Data type keys to export. Default: every type not skipped in the plan. | |
| job_id | Yes | ||
| upgrade | No | Set true to pay the difference to the next pass that fits, only when the app is past its pass's (or free trial's) record or file limit. | |
| go_ahead | No | Set true only when a charge applies, once the owner has seen the estimate and agreed to it. Not needed under the free trial or a pass that already covers the app. Needed again after a pass has expired. | |
| reexport | No | Export everything again even though a finished run exists. | |
| max_pages | No | Pages of up to 100 records per call. Default 20. | |
| r2_bucket | No | An R2 bucket in that account, for staging and schema files. | |
| cf_api_token | No | A Cloudflare API token with D1 edit permission on that account. Sealed in the job, deleted when it ends. Prefer nc_connect with job_id: the owner types tokens on a secure page. Only pass it here if nc_connect is not available. | |
| cf_account_id | No | The customer's Cloudflare account id. | |
| data_api_token | No | The source app's Data API token. Needed on the first call; sealed in the job. Prefer nc_connect with job_id: the owner types tokens on a secure page. Only pass it here if nc_connect is not available. | |
| r2_access_key_id | No | Access key id of an R2 API token that can read and write that bucket. Prefer nc_connect with job_id: the owner types tokens on a secure page. Only pass it here if nc_connect is not available. | |
| r2_secret_access_key | No | Its secret. Sealed in the job, deleted when it ends. Prefer nc_connect with job_id: the owner types tokens on a secure page. Only pass it here if nc_connect is not available. | |
| max_requests_per_minute | No | Throttle for the source app. Default 60. |