storyline_estimate
Estimate the credits needed to run a storyline before execution. Returns a line-item breakdown for user approval, preventing unexpected costs.
Instructions
Read-only dry-run. Estimate the credits required to execute the storyline without actually running it. Use before storyline_execute to surface the cost to the user for approval. Returns { estimatedCredits, lineItemBreakdown } or similar.
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": {
"storylineId": "<storylineId>"
},
"name": "storyline_estimate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brandId | No | Brand ID (defaults to active brand) | |
| storylineId | Yes | Storyline ID |