dsers.product.preview
Review product import job details like title, prices, images, variants, and rules without re-importing. Verify changes before finalizing dropshipping product setup.
Instructions
Reload the preview for a previously prepared import job without re-importing. Use this to re-examine title, prices, images, variants, and applied rules for a job created by dsers.product.import. Returns the same structure as dsers.product.import: job_id, status, title, price ranges, images, variants, rules, warnings.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | Job ID returned by dsers.product.import. |
Implementation Reference
- src/tools.ts:215-240 (handler)Implementation and registration of the dsers.product.preview tool in src/tools.ts. It calls the getImportPreview method from the service.
server.registerTool( "dsers.product.preview", { title: "Import Draft Preview", description: "Reload the preview for a previously prepared import job without re-importing. " + "Use this to re-examine title, prices, images, variants, and applied rules for a job created by dsers.product.import. " + "Returns the same structure as dsers.product.import: job_id, status, title, price ranges, images, variants, rules, warnings.", inputSchema: { job_id: z .string() .describe("Job ID returned by dsers.product.import."), }, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false, }, }, async ({ job_id }) => { try { return ok(await svc().getImportPreview({ job_id })); } catch (err) { return fail(err); } }, );