Preview a bulk campaign render
preview_campaign_renderDry-run a bulk render for a Pitchlane campaign without spending credits or queueing videos. Returns how many videos are eligible, how many would queue vs be skipped or deferred, estimated video and LinkedIn credits, remaining balance, canProceed, and any blockers (such as an unapproved test video or insufficient credits). On metered plans, the final video credit charge depends on actual rendered duration. Unlimited renders use zero video credits; applicable LinkedIn credits still apply. When canProceed is false, the render would be refused even if willQueueCount is positive: stop, tell the user which blockers apply and what would clear them, and do not start the render.
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": {
"campaign_id": "<campaign_id>"
},
"name": "preview_campaign_render"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Optional maximum number of eligible videos to select. Selection is deterministic: oldest created first, or `video_ids` order for `scope: "videos"`. It decides which videos `limit` or `on_insufficient_credits: "partial"` keeps, not the order the renderer finishes them in. | |
| scope | No | Which videos to select: `unrendered` (default), `retry_failed`, `unrendered_and_retry_failed`, `videos` (explicit `video_ids` list), or `import` (one `import_id`). | unrendered |
| import_id | No | Required when `scope` is `import`. | |
| video_ids | No | Required when `scope` is `videos` (1–1,000 video ids, evaluated in this order). | |
| campaign_id | Yes | The campaign's id, as list_campaigns returns it, e.g. `o6duFik0_UNSUGPCn1LTm`. | |
| on_insufficient_credits | No | `fail` (default): refuse if credits cannot cover all selected videos. `partial`: queue as many selected videos as remaining credits allow, in selection order, and defer the rest. | fail |