# `generate_scripts`

_Scripts_

`write` `10/day`

Generate a full AI script (hook, CTA, body and caption options; carousel slides for carousels) for 1-5 content cards and save it to each card. Uses the brand's memory, references, sources and web search when relevant. A card generated in the last 60 seconds is returned as-is (status skipped). Consumes daily quota (10/day). durationSeconds sets the target spoken length. bodyOptions/captionOptions are suggestions to apply with update_content. Each result has a url to the card in Dalea: always share it so the user can open, review and edit the script there.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `brandId` | `string` | no |  |
| `contentIds` | `array<string>` | yes |  |
| `durationSeconds` | `integer` | no |  |
| `objective` | `"followers" \| "reach" \| "engagement" \| "sales" \| "leads" \| "authority"` | no |  |

## Example

### Prompt

```text
Write the full script for my content about pricing mistakes, around 45 seconds.
```

### JSON-RPC

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "generate_scripts",
    "arguments": {
      "contentIds": [
        "3f6c2a4e-8b1d-4c7a-9e2f-5a1b0c9d8e7f"
      ]
    }
  }
}
```

### curl

```bash
curl -X POST https://app.usedalea.ai/api/mcp/mcp \
  -H "Authorization: Bearer dalea_mcp_..." \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"generate_scripts","arguments":{"contentIds":["3f6c2a4e-8b1d-4c7a-9e2f-5a1b0c9d8e7f"]}}}'
```
