Build the old-to-new redirect map (paid)
nc_redirectsBuilds redirects.json (301s from old Bubble® paths and query forms to the new routes), a redirects.ts module, an _redirects file, legacy-urls.json and legacy-redirects.ts (saved into legacy_parity for compilation), and a curl script that tests every URL. Old URLs come from sitemap_url, url_list, gsc_urls, or wayback: true; compiled route patterns (path_patterns) and legacy slug matching run automatically on url_list as well as gsc_urls. A URL whose route or query filter still answers 200 is listed as unchanged; a URL it cannot place is listed as unmapped with the reason, never guessed. Give new routes with page_routes, for example { "listing_detail": "/rooms/:slug" }. 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_redirects"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | ||
| replace | No | Start the job's stored legacy URL map again from this call alone. Without it the URLs of this call are added to what earlier calls recorded. | |
| 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. | |
| wayback | No | Query Wayback CDX for historical 200 URLs on the app's domain. | |
| app_spec | No | app-spec.json, for the page list. Default: the one given to nc_audit. | |
| 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. | |
| gsc_urls | No | Search Console top pages URL list (old indexed URLs). | |
| new_base | No | Origin of the new app for the expected Location, for example https://www.example.com. Default: the old URL's own origin. | |
| url_list | No | Old URLs, absolute or paths. | |
| r2_bucket | No | An R2 bucket in that account, for staging and schema files. | |
| job_secret | No | The job_secret returned when this job was made (or the job's signed editor link). Required with job_id when no API key is sent: the job_id alone does not open a job. | |
| page_types | No | Old page key to the data type it shows, when the name does not say. | |
| id_slug_map | No | { type: { bubble id: slug } }. Default: read from the loaded slug columns. | |
| page_routes | No | Old page key to its new route. A route with :slug or :id takes one thing, for example /rooms/:slug. | |
| sitemap_url | No | The old app's sitemap.xml (a sitemap index is followed). | |
| 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. | |
| path_patterns | No | Multi-segment path to query param mapping by route, for example { "/directory": ["trade", "loc"] }. | |
| 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. |